DiscordBotList v0.1.0 DiscordBotList View Source

Main module which will be used to get and save data.

Link to this section Summary

Functions

Find a bot by username. Similar to DiscordBotList.Struct.Bot.get_multi/1 but has a pre-set username as a query.

Get the default bot id used in API requests.

Get the default token used in API requests.

Get multiple bots corresponding to the specified keyword list. See DiscordBotList.Struct.Bot.get_multi/1 for more info.

Get the stats of the bot. See DiscordBotList.Struct.BotStats.get_stats_about_bot/1 for info about the args.

Get info about a user by specifying the user id. See DiscordBotList.Struct.User.get_for_user/2 for more info.

Get the last 1000 votes for a bot. See DiscordBotList.Struct.VoteUser for more info.

Get the default bot id used in API requests.

Set the default auth token used in API requests.

Updates the stats of the bot. See DiscordBotList.Struct.BotStats.post_updated_data/1 for info about the args.

Check if it is a weekend via the DiscordBotList API.

Link to this section Functions

Link to this function

find_bot_by_username(username, token \\ nil)

View Source

Find a bot by username. Similar to DiscordBotList.Struct.Bot.get_multi/1 but has a pre-set username as a query.

Get the default bot id used in API requests.

Get the default token used in API requests.

Link to this function

get_multi_bots(config \\ [])

View Source

Get multiple bots corresponding to the specified keyword list. See DiscordBotList.Struct.Bot.get_multi/1 for more info.

Link to this function

get_single_bot(config \\ [])

View Source

Get a single bot. See DiscordBotList.Struct.Bot.get_single/1 for more info.

Get the stats of the bot. See DiscordBotList.Struct.BotStats.get_stats_about_bot/1 for info about the args.

Link to this function

get_user_info(user_id, token \\ nil)

View Source

Get info about a user by specifying the user id. See DiscordBotList.Struct.User.get_for_user/2 for more info.

Link to this function

get_votes_for_bot(config \\ [])

View Source

Get the last 1000 votes for a bot. See DiscordBotList.Struct.VoteUser for more info.

Get the default bot id used in API requests.

Link to this function

set_default_token(token)

View Source

Set the default auth token used in API requests.

Link to this function

update_stats(config \\ [])

View Source

Updates the stats of the bot. See DiscordBotList.Struct.BotStats.post_updated_data/1 for info about the args.

Check if it is a weekend via the DiscordBotList API.