1
0
Fork 0
mirror of synced 2024-09-28 07:21:16 +12:00
Commit graph

884 commits

Author SHA1 Message Date
phxntxm
17c4437c3c Stopped printing stuff as testing has been completed 2016-09-24 00:54:30 -05:00
phxntxm
fca698b557 Moved offset to the class, as due to the scope it couldn't be found 2016-09-24 00:47:56 -05:00
phxntxm
a8078757fa Ensured that the paths needed to create images exists 2016-09-24 00:37:48 -05:00
phxntxm
2284049af0 Merge branch 'master' of https://github.com/Phxntxm/Bonfire 2016-09-24 00:33:27 -05:00
phxntxm
4c0d126c10 Initial implementation of creating a banner for stats 2016-09-24 00:33:17 -05:00
Phxntxm
0febc3520f Corrected how to get custom permission values 2016-09-23 16:28:33 -05:00
Phxntxm
f611b37b11 Added a check to ensure e621 responded without an error 2016-09-22 22:45:26 -05:00
Phxntxm
f030504b6f Corrected who was searched on twitch lookups. I fixed this before...what happened...? 2016-09-22 20:53:05 -05:00
phxntxm
6c8b592d12 Rearranged the 'fails' for boops, to not cause an error when none is provided 2016-09-21 14:16:47 -05:00
phxntxm
911eb41459 Added the url to the logging method, based on twitch saying not client id is specified 2016-09-21 14:11:21 -05:00
phxntxm
e2001f9aba Adding a logging for twitch as I can't figure out why it's not working still 2016-09-21 14:09:31 -05:00
phxntxm
70beca85fd Added a message for when someone isn't provided to boop 2016-09-21 14:04:37 -05:00
phxntxm
99fad1d184 Changed client id to be sent as a get variable, as it's not working sending through the headers 2016-09-21 14:03:53 -05:00
phxntxm
2fef94db0f Removed usage of config.loop since bot.loop already exists 2016-09-20 17:22:02 -05:00
phxntxm
2850bdf4ae Implemented newly required client ID 2016-09-20 17:21:48 -05:00
phxntxm
fc921710cf Added a check for the invalid ipv6 error that youtube_dl throws 2016-09-19 13:19:15 -05:00
Phxntxm
1318fce81a Added a catch for when the bot's message has already been deleted 2016-09-18 16:13:41 -05:00
Phxntxm
5ebab3a077 Added a check in case a message is not found when trying to delete; added a check to ensure the provided permission is valid 2016-09-17 20:30:20 -05:00
phxntxm
26f29255da Merge branch 'master' of https://github.com/Phxntxm/Bonfire 2016-09-14 19:10:50 -05:00
phxntxm
78ef45e0d8 Found the other case that discord fails to connect to a voice channel, hopefully all workarounds should be in place now 2016-09-14 19:10:44 -05:00
Phxntxm
15dedc5256 Added a zero-width space to tags to ensure they can't trigger other bot's commands 2016-09-12 15:34:31 -05:00
phxntxm
52ad367e0b Made sure that the id of the strawpoll is a string, not an int, when saving 2016-09-11 13:17:04 -05:00
phxntxm
374a0433aa Used the new cooldown reset method 2016-09-11 03:32:36 -05:00
phxntxm
f4291ab923 Used the new cooldown reset method; simplified boops 2016-09-11 03:30:23 -05:00
phxntxm
8c90220eab Corrected some of the logic behind cache; fixed an error that caused our cache object to be deleted and replaced by the dictionary that sould have been saved to it's value 2016-09-11 03:28:57 -05:00
phxntxm
aedf8c4a4c Spelled tokens correctly 2016-09-07 05:32:57 -05:00
phxntxm
1a15c12c3e Added a cooldown reset on failed commands 2016-09-06 14:56:34 -05:00
Phxntxm
52eea3753b Made sure that the bot is in a channel in cases where the VoiceClient gets stuck 2016-09-05 21:52:14 -05:00
Phxntxm
8bd014a345 Added a check to make sure the server is found, as now that the bot is sharded we may not detect the correct server 2016-09-03 17:18:24 -05:00
Phxntxm
6de4800e54 Merge branch 'master' of https://github.com/Phxntxm/Bonfire 2016-09-03 16:26:50 -05:00
Phxntxm
b0a8565096 Corrected how remove perms checked the command provided 2016-09-03 16:23:24 -05:00
phxntxm
04ccc6bdc1 Corrected how to save tags 2016-09-02 00:40:32 -05:00
phxntxm
0fe1868b4e Corrected instance checking on content 2016-09-01 00:32:15 -05:00
phxntxm
a61d1e7b21 Changed up the count for servers to not be amigious 2016-09-01 00:15:11 -05:00
phxntxm
712fee7eb2 Corrected error when bot_data was not found 2016-08-31 23:54:20 -05:00
phxntxm
d79f1d53a8 Added another check in case cached object failed 2016-08-31 23:47:03 -05:00
phxntxm
fa8231eb71 Added another check in case cached object failed 2016-08-31 23:46:22 -05:00
phxntxm
3b66f780a9 Added another check in case cached object failed 2016-08-31 23:44:45 -05:00
phxntxm
34bc196c21 Removed __repr__ as it's not used 2016-08-31 23:41:43 -05:00
phxntxm
b031b4d2f5 Corrected what to save on updating 2016-08-31 23:02:10 -05:00
phxntxm
9c1a4fab5c Awaited the coroutine 2016-08-31 23:01:45 -05:00
phxntxm
737c97d3db Correctly closed the rethinkdb connection 2016-08-31 22:58:41 -05:00
phxntxm
2880306764 Replaced the string key with the actual variable... 2016-08-31 22:51:21 -05:00
phxntxm
5cdce2cad7 Reimplemented cache, changed up the checking for it for rare odd cases 2016-08-31 22:24:21 -05:00
phxntxm
bf4041fa64 Made sure the full length of servers is sent to the bot sites 2016-08-31 22:23:58 -05:00
phxntxm
9181aff295 Changed up how starting a hangman game works; now chooses from a random phrase 2016-08-31 21:01:43 -05:00
phxntxm
d8b2fcb3a2 Added the ability to get server/member count across all shards 2016-08-31 19:07:38 -05:00
phxntxm
d0f81a3f1a Corrected tags as rethinkdb cannot save lists 2016-08-31 18:19:47 -05:00
phxntxm
c7e8c5c71c Corrected the command_prefix method 2016-08-31 17:53:33 -05:00
phxntxm
644436f9a1 Corrected the config file, while not caching 2016-08-31 17:50:40 -05:00
phxntxm
b689bb2a95 Disabled cache object, as the logic behind it and sharding does not work 2016-08-31 16:45:00 -05:00
phxntxm
f7bdf39845 Ensured uptime is valid by making it first 2016-08-31 16:19:39 -05:00
phxntxm
2f94ed9459 Corrected what to set values to by default 2016-08-31 15:28:52 -05:00
phxntxm
f048a1b27f Added a username and password to the db connection 2016-08-31 15:21:52 -05:00
phxntxm
c2e1ee17d5 Removed ssl connection while it's still being worked on by rethinkdb devs 2016-08-31 15:06:21 -05:00
phxntxm
c8bb26b2e2 Added statsupdate, as we're ready to merge to master 2016-08-31 14:48:07 -05:00
phxntxm
16aa8954cb Matched up all mismatched 'prefix' and 'prefixes' 2016-08-31 14:17:33 -05:00
phxntxm
181fbec47e Added missing awaits 2016-08-31 14:15:38 -05:00
phxntxm
0f21cf5155 Corrected what was checked in our prefix method 2016-08-31 14:13:09 -05:00
phxntxm
ce7151612e Added a custom prefix command 2016-08-31 14:10:33 -05:00
phxntxm
6bd265fc59 Used the internal cache instead of a fake 'cache' object for one object 2016-08-31 14:10:17 -05:00
phxntxm
e863a0e4e0 Implemented cache; added a custom prefix method ability 2016-08-31 14:09:11 -05:00
phxntxm
98d56f9b69 Stopped the player from resetting volume upon playing the next song 2016-08-31 11:58:59 -05:00
phxntxm
ffbd1ee431 Made sure that rules is always a list if invalid 2016-08-30 21:57:23 -05:00
phxntxm
d522726cc7 Corrected nsfw channels and rules 2016-08-30 21:54:32 -05:00
phxntxm
138021bd90 Changed nsfw and rules so that they can are dictionaries 2016-08-30 21:48:37 -05:00
phxntxm
65d4b143b3 Ensured that the connection closes when saving and getting data 2016-08-30 21:19:19 -05:00
phxntxm
6f9acb0d7a Changed up what was returned on invalid searches 2016-08-30 20:48:30 -05:00
phxntxm
0dcd900585 Created a class, and an object of that class to cache custom permissions, and only query for new permissions when they are updated 2016-08-30 19:44:24 -05:00
phxntxm
dbfff6e01d Corrected the logic when nothing is found in the database; changed some exceptions 2016-08-30 19:23:07 -05:00
phxntxm
60ed33fa15 Corrected how to call the coroutine in the check 2016-08-30 19:15:42 -05:00
phxntxm
cad6fd4e14 Awaited the new save/get content methods 2016-08-30 19:11:25 -05:00
phxntxm
36c839a276 Finished up saving/loading content to rethinkdb 2016-08-30 18:59:55 -05:00
phxntxm
5b8fc913b8 PEP8 changes 2016-08-30 17:33:46 -05:00
phxntxm
2643dc6d80 Changed saving method to rethinkdb instead of config file 2016-08-30 17:33:37 -05:00
phxntxm
162ef91379 Created a test command to test shard data 2016-08-30 15:23:12 -05:00
phxntxm
b9cb3bf603 Printing on status changes; as the 2nd bot seems to not connect 2016-08-30 14:51:04 -05:00
phxntxm
d35b990b26 Yaml was renamed? 2016-08-30 14:28:58 -05:00
phxntxm
43185dc031 Added sharding ability, first implementation of new saving method 2016-08-30 14:21:17 -05:00
phxntxm
2d78558cec Fuck you derpibooru, fix your search function 2016-08-30 02:19:28 -05:00
phxntxm
32e4d26559 Corrected the combination of explicit and suggestive to not break searches 2016-08-30 02:14:01 -05:00
phxntxm
97367a8873 Merge branch 'master' of https://github.com/Phxntxm/Bonfire 2016-08-30 01:48:02 -05:00
phxntxm
9e1c0a2dee Forced safe tag for nsfw channel derpi lookups; added suggestive to nsfw channel lookups 2016-08-30 01:47:52 -05:00
Phxntxm
0214537e49 Correctected the indentation error 2016-08-28 16:41:32 -05:00
Phxntxm
0e785ef9b0 Changed up what permissions are required for role management 2016-08-28 15:00:34 -05:00
Phxntxm
402ddb061c Corrected what exception would be hit if custom_perms is not found 2016-08-28 14:40:34 -05:00
Phxntxm
04472c522e Added the ability to check default permissions 2016-08-28 14:39:28 -05:00
Phxntxm
ef1608b482 Added a silent exception for playing music and not having permissions to send messages, as this seems to happen commonly based on error logs 2016-08-27 22:32:11 -05:00
Phxntxm
ceddb2b7c8 Added a check in case the volume passed is higher than max 2016-08-27 22:26:23 -05:00
Phxntxm
e101ba3120 Added perms attribute in the custom_perms predicate 2016-08-27 22:00:43 -05:00
Phxntxm
5242dc613f Added an exception checking for odd cases where the VoiceClient gets stuck, while the bot is not in a voice channel 2016-08-27 17:18:37 -05:00
Phxntxm
3afe3c1db9 Added a check for purging/pruning to see if the bot has permissions to do so 2016-08-27 14:36:07 -05:00
Phxntxm
a16684a61c Added an exception for when strawpoll returns invalid data 2016-08-27 13:49:06 -05:00
Phxntxm
6fca8e7252 Changed up the order of modifying new hangman games, to avoid cases where a forbidden error leaves an invalid game 2016-08-26 20:30:06 -05:00
phxntxm
b082ce5f04 Removed the change Pycharm made for pep8 which caused the bot not to run, as the directoy was detected incorrectly 2016-08-26 08:23:02 -05:00
phxntxm
217407fbaa Removed the deleted status message after a minute 2016-08-26 00:12:54 -05:00
phxntxm
0173ff0924 Printed out the amount of messages removed when pruning 2016-08-25 23:56:16 -05:00
phxntxm
3b3974eb0b Added a prune command 2016-08-25 23:50:09 -05:00
phxntxm
b1a786ba70 Added a check in case we failed to create a hangman game 2016-08-25 23:36:35 -05:00
phxntxm
2af7f9ee66 Added exception handling if a user does not have any csgo stats 2016-08-25 23:28:39 -05:00
phxntxm
df8db00c08 Removed exception handling if voice was still none, it just caused a loop. I don't know how this error keeps happening 2016-08-24 14:55:09 -05:00
phxntxm
48c1f75bd0 Changed up what to do in the case voice gets stuck in a bad state 2016-08-23 19:21:56 -05:00
phxntxm
96c77a21db Added an exception check in case voice gets stuck, and the bot is already ina channel 2016-08-23 19:12:52 -05:00
phxntxm
7cbb788668 Added an error check for if there is no result, based on search terms 2016-08-22 23:57:59 -05:00
Phxntxm
171d57d259 Saved when adding a new battletag 2016-08-22 18:28:25 -05:00
Phxntxm
1e9dbba2ed Updated the audio task to silently fail if we don't have permission to send a message 2016-08-22 16:28:27 -05:00
Phxntxm
31391c8556 Changed up the order in case the bot does not have permissions to send a message 2016-08-22 15:09:00 -05:00
Phxntxm
48ccf886b5 Handled error when a the bot does not have permissions to delete a message 2016-08-21 20:52:27 -05:00
Phxntxm
20981729bd Added some aliases, corrected who was looked up for csgo stats 2016-08-21 20:13:39 -05:00
Phxntxm
b6a2f491ef Added a force stop command 2016-08-21 15:23:47 -05:00
Phxntxm
bf535f3cbc Corrected what was being searched in running 2016-08-21 15:15:41 -05:00
Phxntxm
09ad1a8b57 Renamed battles variable, as it caused a conflict 2016-08-21 15:12:13 -05:00
Phxntxm
38f4c578db Removed ctx, as it's not used 2016-08-21 15:11:18 -05:00
Phxntxm
161eade219 Added a command to see how many things, and what is running 2016-08-21 15:10:53 -05:00
Phxntxm
639c6ae58d Corrected what was sent via the timeout 2016-08-21 15:01:47 -05:00
Phxntxm
c6e057ad67 Changed up leaderboard to print just the first 10 2016-08-21 14:49:43 -05:00
Phxntxm
9c03d61439 Changed up leaderboard to print just the first 10 2016-08-21 14:49:24 -05:00
Phxntxm
57c8b0271a Corrected syntax error 2016-08-21 14:38:03 -05:00
Phxntxm
9898b1eff0 Changed up battling to stop saving content to the config file, as there's no need 2016-08-21 14:37:12 -05:00
phxntxm
803a764007 Added an extra error check for playing music, in case is_done does not exist 2016-08-21 02:18:35 -05:00
phxntxm
2f85aebee0 Removed checking player 2 on hangman, there is no player 2 2016-08-21 02:14:40 -05:00
phxntxm
0c622b8224 Changed name of url argument, as kwargs included url 2016-08-21 01:00:54 -05:00
phxntxm
e3dfb91041 Stopped downloading the youtube_dl url upon play command 2016-08-21 00:36:38 -05:00
Phxntxm
25adbf83f5 Stopped the bot from removing messages, as it bugs mobile apps when removed so quickly 2016-08-20 22:04:27 -05:00
Phxntxm
9cb1cd25b1 Added a check to ensure that the bot is not being challenged 2016-08-20 20:55:52 -05:00
Phxntxm
5da0830b5c Added a zero-width space to the say command, to avoid possible abuse by other bots 2016-08-20 18:54:51 -05:00
Phxntxm
1989c4bb0e Added an exception check for timing out 2016-08-20 16:56:20 -05:00
phxntxm
c7be4bb7b2 Corrected error where an extra attempt to remove a rule was done 2016-08-20 11:48:02 -05:00
phxntxm
9f4a0400e5 Changed up the settings for checking if a user is on picarto 2016-08-20 00:34:17 -05:00
phxntxm
ca575cedab Corrected error where server_alerts was not saved 2016-08-20 00:28:17 -05:00
phxntxm
880fa0e17b Corrected issue when no option is provided 2016-08-20 00:13:13 -05:00
phxntxm
92ca0831e0 Finished implemenation of modular amount of required skips 2016-08-19 23:25:17 -05:00
Phxntxm
5c6b36d645 Started implementation of modular required skip amount 2016-08-19 23:00:23 -05:00
Phxntxm
baa6d5899f Removed converting puncation to blanks 2016-08-19 22:27:48 -05:00
Phxntxm
2c55799379 Added an exception in case no option was passed 2016-08-19 18:55:51 -05:00
Phxntxm
e8e33c46f0 Added a check for if a close match to the provided game is not found 2016-08-19 18:52:38 -05:00
Phxntxm
e64e47c640 Added a check to see if the bot's steam info was being looked up 2016-08-19 18:44:18 -05:00
Phxntxm
6c3fa02134 corrected which group to get in the regex search 2016-08-19 18:36:47 -05:00
Phxntxm
804bc3ad8b Corrected syntax error 2016-08-19 18:33:30 -05:00
Phxntxm
846b29c1f3 Corrected some error checking on lookups 2016-08-19 18:32:24 -05:00
Phxntxm
4ce7340600 Corrected what was being sent to the get_app_id method 2016-08-19 18:11:53 -05:00
Phxntxm
305d18ba64 Corrected what's printing in the game slot 2016-08-19 18:09:50 -05:00
Phxntxm
d9823485ef Corrected syntax error 2016-08-19 18:08:28 -05:00
Phxntxm
70a8682a11 Corrected syntax error 2016-08-19 18:05:25 -05:00
Phxntxm
d70f9d5a76 Corrected syntax error 2016-08-19 18:03:54 -05:00
Phxntxm
d0f7d8d784 Corrected syntax error 2016-08-19 18:02:46 -05:00
Phxntxm
5a55d346d4 Corrected syntax error 2016-08-19 18:02:12 -05:00
Phxntxm
4286e9da26 Corrected syntax error 2016-08-19 18:01:22 -05:00
Phxntxm
c4127f2911 Added the ability to search achievements/info on a user 2016-08-19 18:00:16 -05:00
Phxntxm
0cb6fc07be Changed where to pull display names from 2016-08-19 17:19:21 -05:00