mirror of
https://github.com/uowuo/abaddon.git
synced 2025-03-04 03:03:16 -05:00
update build number fetch
This commit is contained in:
parent
606c6a4bc8
commit
5f8445accc
@ -342,7 +342,7 @@ private:
|
||||
|
||||
std::string m_token;
|
||||
|
||||
uint32_t m_build_number = 279382;
|
||||
uint32_t m_build_number = 363557;
|
||||
|
||||
void AddUserToGuild(Snowflake user_id, Snowflake guild_id);
|
||||
std::map<Snowflake, std::set<Snowflake>> m_guild_to_users;
|
||||
|
@ -56,7 +56,7 @@ std::optional<uint32_t> GetBuildNumberFromJSURL(const Glib::ustring &url, const
|
||||
auto res = req.execute();
|
||||
if (res.error) return {};
|
||||
|
||||
auto regex = Glib::Regex::create(R"(buildNumber",\(.="(\d+))");
|
||||
auto regex = Glib::Regex::create(R"(buildNumber","(\d+))");
|
||||
Glib::MatchInfo match;
|
||||
Glib::ustring string = res.text;
|
||||
if (regex->match(string, match)) {
|
||||
|
Loading…
Reference in New Issue
Block a user