1
0
Fork 0
mirror of synced 2024-06-24 17:21:07 +12:00
Commit graph

1645 commits

Author SHA1 Message Date
phxntxm 7983c07a12 Return the future as well as the result, so that we can check the result of the future (that mouthful...) 2017-06-27 17:57:55 -05:00
phxntxm 3c42bc4545 Added the ability to intuitively restrict some things 2017-06-27 16:14:39 -05:00
Phxntxm c1fb35a9d6 Correct a bit of logic when joining a raffle 2017-06-19 13:54:59 -05:00
phxntxm 345ad7a63c This was supposed to be addition not subtraction 2017-06-19 13:04:51 -05:00
Phxntxm 467cdb57d5 Use the correct form of voice 2017-06-18 13:48:10 -05:00
Phxntxm 601561fc94 Move when the response is lowered 2017-06-17 18:05:40 -05:00
Phxntxm 01ebe5bf21 Setup of raffle specific alerts 2017-06-17 18:04:46 -05:00
Phxntxm b769c64e01 Setup of Twitch specific alerts 2017-06-17 18:04:36 -05:00
Phxntxm b9efeefa89 Setup of picarto specific alerts 2017-06-17 18:04:25 -05:00
Phxntxm fd1fddc450 Split state and voice disconnections 2017-06-17 18:04:11 -05:00
Phxntxm d1662e1a82 Use default or welcome notifications overrides 2017-06-17 18:03:54 -05:00
Phxntxm d5c49b2347 Seperation of welcome alerts and default alerts 2017-06-17 18:03:26 -05:00
Phxntxm 0a7cfb42b7 Merge branch 'rewrite' of https://github.com/Phxntxm/Bonfire into rewrite 2017-06-16 20:58:11 -05:00
Phxntxm 43a289750d Add self to globals; catch when the content is too large to print 2017-06-16 17:04:26 -05:00
phxntxm ce22d44a86 Change the creation of the refreshing task, since call_later can't be used with coroutines 2017-06-16 03:47:49 -05:00
Phxntxm 6ab89c1ba5 Remove errant class creations/correct conversion of string to int 2017-06-15 21:42:41 -05:00
Phxntxm e6efcf9042 Check if URL provided is None 2017-06-15 21:37:53 -05:00
Phxntxm df37b78718 Ensure the channel given exists 2017-06-15 21:30:12 -05:00
Phxntxm d5a5820983 Remove pending change (shouldn't have been commited) 2017-06-15 21:28:25 -05:00
Phxntxm a09452247e Ensure the channel given exists 2017-06-15 21:27:33 -05:00
phxntxm dc08406739 Use actual_load 2017-06-12 02:10:01 -05:00
phxntxm 9604d5a4ea Correct how the table_filter works 2017-06-12 02:08:31 -05:00
phxntxm e6bdf6c8f3 Add avatar back to picarto embeds 2017-06-12 01:48:54 -05:00
phxntxm 05e6d0404f Stupid aiohttp 2017-06-12 01:41:10 -05:00
phxntxm ec1df2dd3d Where did that go? 2017-06-12 01:32:59 -05:00
phxntxm e98f1504cc Correct a couple key changes 2017-06-12 00:48:31 -05:00
phxntxm 51f3696308 Use Picarto's new API 2017-06-12 00:46:07 -05:00
Phxntxm 6b805faf0f Reorder a few things in the next_song method too ensure we set the song 2017-06-11 14:30:09 -05:00
Phxntxm 0f2f9b628a Reorder a few things in the next_song method too ensure we set the song 2017-06-11 14:28:58 -05:00
phxntxm 14d6cc5e20 Correct syntax error 2017-06-11 13:03:34 -05:00
Phxntxm 1956d6e5c1 Edge cases~ 2017-06-10 21:58:20 -05:00
Phxntxm 8c1f23e59b Include an actual helpful example/result in order to not confuse dummies 2017-06-10 14:25:04 -05:00
Phxntxm 8abe27e85c Catch a few edge cases 2017-06-09 21:50:17 -05:00
phxntxm 60e9348896 Lower the playlist and option names 2017-06-07 21:19:31 -05:00
phxntxm 3fb4d3f337 Only lower when needed 2017-06-07 20:05:38 -05:00
phxntxm 25c6a89e20 Don't check if current is set 2017-06-07 19:40:50 -05:00
phxntxm a65ffeb221 Check if there was a failure when adding a new song 2017-06-07 19:40:37 -05:00
phxntxm 534dd29f4f Few more edge cases 2017-06-07 15:56:51 -05:00
phxntxm ef531bd2d2 Ensure a response is given for the first question 2017-06-07 15:56:45 -05:00
phxntxm b0a965031f Use actual load as the filter we use is more complex to load from cache currently 2017-06-07 13:54:00 -05:00
phxntxm dbe5cf6110 Fix a few edge cases 2017-06-07 13:53:40 -05:00
phxntxm 7f2c542b3a Reenable battle 2017-06-07 13:53:27 -05:00
phxntxm 898fd8b7f4 Add a second check to ensure we are not playing before actually overwriting the song/dj 2017-06-07 03:53:15 -05:00
phxntxm 6779dfca03 Remove no longer needed print statements 2017-06-07 03:38:30 -05:00
phxntxm e43808f40c Reenable booping 2017-06-07 03:38:08 -05:00
phxntxm efc1a3cf6d Database rewrite/User queue creation 2017-06-07 03:30:19 -05:00
phxntxm 1cc88ce6ab Catch HTTPExceptions as this usually means an explicit word was sent 2017-05-29 16:33:31 -05:00
phxntxm 7c30ed595a PEP8 2017-05-29 16:29:49 -05:00
phxntxm 83e68a4c7f Handle if there aren't any nsfw channels on this server 2017-05-29 16:29:43 -05:00
phxntxm bf5f65b0b7 Handle if the avatar is too large 2017-05-29 16:27:25 -05:00
phxntxm d5b1f0a64d Handle when there are no songs in the queue 2017-05-29 16:27:12 -05:00
phxntxm 74896d921e Move joining a channel to it's own method 2017-05-29 16:17:00 -05:00
Phxntxm 2e159cf7c4 Catch the other, not so common ExtractionError 2017-05-20 13:44:15 -05:00
Phxntxm ce6b831b93 Remoe the colour formatting from errors 2017-05-19 21:28:35 -05:00
Phxntxm 4178298065 Correct exception checking 2017-05-19 13:55:55 -05:00
Phxntxm aebaa9b282 Add another edge case check 2017-05-19 13:55:45 -05:00
Phxntxm 942e1b0a09 Add a method to send a message to the owner when the bot has left/joined a guild 2017-05-18 22:09:00 -05:00
Phxntxm 159efa6dee Use correct variable reference 2017-05-18 21:04:33 -05:00
Phxntxm 19507d06ba Remove old filter 2017-05-18 21:03:36 -05:00
Phxntxm 0f17624b58 Correct description 2017-05-18 21:03:20 -05:00
Phxntxm 13643bd1a2 Couple edge case checks 2017-05-18 21:03:09 -05:00
Phxntxm 32be71d4ec Correctly get examples, results, and the description 2017-05-18 21:03:00 -05:00
Phxntxm 38018674bc Use the qualified name for the commands 2017-05-18 20:45:24 -05:00
Phxntxm 11fae59047 Correct a couple old references 2017-05-18 20:44:28 -05:00
Phxntxm 6f4a5ee0ba Correct order of if statement 2017-05-18 20:42:42 -05:00
Phxntxm fcf88680ce Readd specific command help 2017-05-18 20:41:41 -05:00
Phxntxm 6d18799dd8 Don't try to connect again on failure; normally this is due to timeing out and we don't want to continiously time out 2017-05-18 14:02:29 -05:00
Phxntxm 47f0cfebfa Add a check for if there are no roles 2017-05-18 14:01:56 -05:00
Phxntxm dae3e4761e Reordered if statements to allow nsfw channels in DM's 2017-05-18 13:57:59 -05:00
phxntxm 4db5e57a98 Use the role hierarchy to list the roles in order 2017-05-16 23:02:52 -05:00
phxntxm a5daa026d5 Use the paginator 2017-05-16 22:47:33 -05:00
phxntxm 917ca70901 Added a check to ensure the song exists 2017-05-16 22:47:27 -05:00
Phxntxm 8860cd90a7 Add aliases; sort cogs 2017-05-15 18:36:39 -05:00
Phxntxm ccc70f0c4b Use the guild's voice client to disconnect 2017-05-15 16:19:04 -05:00
Phxntxm 38792b1a0b Make the extensions prettier 2017-05-14 20:08:13 -05:00
Phxntxm 184256c905 Add a polls cog 2017-05-14 20:07:04 -05:00
Phxntxm c519896715 Use the guild's voice client 2017-05-14 20:05:09 -05:00
Phxntxm 84c096df4b Ensure the bot.owner attribute has been set 2017-05-14 20:04:52 -05:00
Phxntxm e9354febc4 Force disconnection if we're stuck between connection states 2017-05-14 14:18:32 -05:00
phxntxm 97ae123c71 Reorder some parts with join, to ensure we detect the right status 2017-05-14 05:10:40 -05:00
Phxntxm dd9b3a4f1b Remove replacing of slashes 2017-05-13 17:16:27 -05:00
Phxntxm 29680724b0 Remove logging as library now logs this 2017-05-13 15:20:40 -05:00
Phxntxm 2a5e6b96b1 Ensure that the duration has been provided when using length 2017-05-13 14:23:32 -05:00
Phxntxm 2e1fd109f1 Add a few extra checks 2017-05-13 14:23:18 -05:00
Phxntxm 37e493b101 Update volume checking to use the state's property 2017-05-12 18:13:27 -05:00
Phxntxm d0842037f3 Add a second check for misinterpretation for searches as URL's 2017-05-12 17:53:45 -05:00
Phxntxm 7abcbe45d0 Replaced slashes with a space to not confuse URL's 2017-05-12 17:53:25 -05:00
Phxntxm d792f1d648 Add the ability to add a proxy to youtube_dl 2017-05-11 22:06:27 -05:00
Phxntxm 3e14ddfb89 Use a proxy if provided 2017-05-11 22:06:10 -05:00
Phxntxm 79ed786bb6 Remove some no longer required things from config 2017-05-11 21:40:21 -05:00
Phxntxm 6d2917c31b Move extensions from config.yml to be hardcoded 2017-05-11 19:50:57 -05:00
Phxntxm 645bfef0b6 Use the actual application info to figure out owner 2017-05-11 19:43:43 -05:00
Phxntxm 0549f8134d Check if a playlist is provided 2017-05-11 18:25:37 -05:00
Phxntxm e3e2a312d0 Update Converters to match current version 2017-05-11 18:23:47 -05:00
phxntxm aef72178a8 Add a first page and last page button to the queue 2017-05-09 18:21:12 -05:00
phxntxm 3b469fbe73 Rework debug command (Thanks Danny) 2017-05-09 18:21:05 -05:00
phxntxm 913ca3ce68 Correct which table to save in when updating prefix 2017-05-09 17:20:28 -05:00
Phxntxm 812988f00d Don't check if we're connected when disconnecting 2017-05-08 17:19:01 -05:00
Phxntxm f0ce98e731 Add default error catching, as well as logging these 2017-05-08 16:54:43 -05:00
Phxntxm 622be1e2ae Import discord 2017-05-08 16:54:24 -05:00
Phxntxm bfa859ac1e Add a check for nsfw channels, assume this channel is...nsfw 2017-05-07 21:50:28 -05:00
Phxntxm 75b0d2705f Convert error to string 2017-05-07 21:23:56 -05:00
Phxntxm 9fda74775c Syntax error 2017-05-07 21:22:14 -05:00
Phxntxm d61f2fa472 Get rid of youtube-dl's stupid colour formatting 2017-05-07 21:21:46 -05:00
Phxntxm 80c90f8d80 Use the right song when showing which one failed to download 2017-05-07 21:18:19 -05:00
Phxntxm 8f9e514260 Change entry to print an embed instead of a message 2017-05-07 21:16:51 -05:00
Phxntxm 1e451942be Print the song playing 2017-05-07 21:11:05 -05:00
Phxntxm 4cb478eb8e Send ctx instead of requester 2017-05-07 21:07:24 -05:00
Phxntxm 4ebfcf6613 Catch when videos fail to download 2017-05-07 21:05:37 -05:00
Phxntxm 064e182dde Don't add commands users can't run 2017-05-07 20:42:42 -05:00
Phxntxm e282e1e073 Remove vdebug command 2017-05-07 20:39:42 -05:00
Phxntxm 60b1510c5c Add guild to the environment variables 2017-05-07 20:39:34 -05:00
Phxntxm 5451395e0a Add an exception for some oddly formatted searches that trigger socket.gaierror 2017-05-07 20:38:24 -05:00
phxntxm 92514b6987 Merge branch 'rewrite' of https://github.com/Phxntxm/Bonfire into rewrite 2017-05-06 00:09:50 -05:00
phxntxm 97f1da001b Correct declining battle 2017-05-05 23:59:16 -05:00
phxntxm 24a7a64b07 Change how to check for pause/resume errors 2017-05-05 23:58:05 -05:00
Phxntxm 77848aef01 Add a full messagee 2017-05-05 15:58:17 -05:00
Phxntxm 0c30aca9d9 Add a check for if value has been provided 2017-05-05 15:55:29 -05:00
Phxntxm 005ac4179b Correct type for channel ID 2017-05-05 15:55:18 -05:00
Phxntxm 1d859e0995 Add a command to send a message to a particular channel 2017-05-05 15:53:12 -05:00
Phxntxm cbd522991a Rework volume to have a default volume set for every song that plays 2017-05-04 17:33:26 -05:00
Phxntxm bd7b5a5ca5 Add songs playing to info embed 2017-05-04 17:33:10 -05:00
Phxntxm 6dcaf2ef99 Remove erroneous comment 2017-05-04 17:33:01 -05:00
phxntxm bfb744bb29 remove erroneous alias 2017-05-04 02:44:51 -05:00
phxntxm 483698ea29 Renaming of assigning commands to make it more clear which does which 2017-05-04 02:44:10 -05:00
phxntxm a793378093 Correct naming of command 2017-05-04 02:34:33 -05:00
phxntxm aa610bd1d8 Add the ability to remove and list self-assignable roles 2017-05-04 02:33:24 -05:00
phxntxm 00b49f7445 Correct requirements for assign me 2017-05-04 01:30:07 -05:00
phxntxm 67dd73c0af Add a message for when connections timeout 2017-05-03 20:12:13 -05:00
phxntxm 7658241913 Add error messages when picarto URL is not saved 2017-05-03 15:31:28 -05:00
phxntxm e4ef3c075b Use better jokes 2017-05-02 19:29:14 -05:00
phxntxm 84746e23bb Correct how to get the font files 2017-05-02 19:19:28 -05:00
phxntxm 38cc78c09e Correct the element passed 2017-05-02 15:15:30 -05:00
phxntxm 85d1cdbe2d Move fonts used to a fonts folder in the repository 2017-05-02 14:38:32 -05:00
Phxntxm ab5d73a742 Move the valid_perms list to the correct cog 2017-05-01 18:31:33 -05:00
Phxntxm 3754fbc565 Put a newline in before the tictactoe board 2017-05-01 17:45:22 -05:00
Phxntxm 6aab8267f9 Correct how to get guild from a player provided 2017-05-01 16:01:53 -05:00
Phxntxm c295265e0b Correct how to get player1 2017-05-01 15:58:58 -05:00
Phxntxm 89129a5d88 Correct how to get player's battles in accept and decline 2017-05-01 15:57:32 -05:00
Phxntxm baa16d6e18 Remove erroneous variable 2017-05-01 15:49:26 -05:00
Phxntxm d7f3307e62 Correct how to get the guild 2017-05-01 15:48:29 -05:00
Phxntxm 86a8d57666 Correct syntax error 2017-05-01 15:46:59 -05:00
Phxntxm 43b32badc4 Correct syntax error 2017-05-01 15:46:36 -05:00
Phxntxm 0d66448338 Reformat battling, to allow more than one to be done at once 2017-05-01 15:45:56 -05:00
Phxntxm d516551de6 Import rethinkdb module 2017-05-01 14:07:39 -05:00
Phxntxm a12a18db14 Import glob 2017-04-30 19:16:42 -05:00
Phxntxm e574e2d532 Use the bot's clientuser's avatar url to not cause issues in PM 2017-04-30 19:05:11 -05:00
Phxntxm cc6c867306 Correct class to call in setup 2017-04-30 18:58:14 -05:00
Phxntxm 863903c765 Add missing init 2017-04-30 18:57:36 -05:00
Phxntxm 5aa87ce653 Reordering of commands to be grouped better 2017-04-30 18:56:02 -05:00
phxntxm 32f195b2f1 Add a check to ensure the source exists 2017-04-26 05:00:43 -05:00
Phxntxm 71772a4e19 Add a check for if the voice channel is None 2017-04-24 16:21:17 -05:00
Phxntxm ca8c3625a4 Send files with a filename 2017-04-24 14:25:05 -05:00
Phxntxm 6704af7508 Update images to use file-like objects to not take up disk space 2017-04-24 14:24:58 -05:00
Phxntxm e7133bc25f Correct volume implementation 2017-04-23 19:09:49 -05:00
Phxntxm ead82dc4aa Handle playing when voice is None 2017-04-23 17:28:13 -05:00
Phxntxm 90598f26bf Handle if the channel returned is None 2017-04-23 15:25:42 -05:00
Phxntxm 99ac6fdd6c Correct when the source is retrieved 2017-04-22 22:12:48 -05:00
Phxntxm 96e17e9cb6 Import required Exception 2017-04-22 22:09:03 -05:00
Phxntxm a30dae0735 Have the playlist handle searching for songs 2017-04-22 22:07:54 -05:00
Phxntxm c821adf87a Have the playlist handle searching for songs 2017-04-22 22:06:45 -05:00
Phxntxm 7e1ca280de Move the LiveStreamError to the exceptions module 2017-04-22 21:45:36 -05:00
Phxntxm 543c82a5c4 Merge branch 'rewrite' of https://github.com/Phxntxm/Bonfire into rewrite 2017-04-22 17:54:36 -05:00
Phxntxm ccee1dc046 Handle when live streams are attempted to be downloaded 2017-04-22 17:54:23 -05:00
phxntxm 43de52fae7 Change a few cases where voice of a state is still none 2017-04-22 00:29:58 -05:00
Phxntxm 6be0c4c93d Import regex module 2017-04-21 14:45:20 -05:00
Phxntxm 50cca0c7ff Add cpu/memory usage to info command 2017-04-20 22:04:48 -05:00
Phxntxm 6199d867dc Add cpu/memory usage to info command 2017-04-20 22:03:52 -05:00
Phxntxm 62c9c764d6 remove certain symbols that break song lookups 2017-04-20 19:13:57 -05:00
Phxntxm cc470c86db Handle if no there are no server settings 2017-04-20 18:41:35 -05:00
Phxntxm c34532cf09 Correct variable reference 2017-04-20 17:44:21 -05:00
Phxntxm 5d487a7f78 Add a check when creating a tag, to ensure that it doesn't already exist 2017-04-20 17:42:52 -05:00
Phxntxm 694c848517 Changed the orders of the errors for logical preference 2017-04-20 17:28:14 -05:00
phxntxm 34fae41208 Check if we're playing something when setting the volume 2017-04-19 22:45:11 -05:00
phxntxm 40b4977a32 Check if we're already connected to a channel 2017-04-19 22:43:24 -05:00
phxntxm cf4fc12831 Fix tabbing issue 2017-04-19 22:35:06 -05:00
phxntxm 173baaba14 Check for permissions when connecting 2017-04-19 22:32:18 -05:00
phxntxm e011b56873 PEP8 2017-04-19 22:18:26 -05:00
phxntxm 92f62c6ce8 Add a zws in order to not tag other commands 2017-04-19 22:18:20 -05:00
phxntxm b59b57f716 Finish music implementation on rewrite 2017-04-19 22:18:05 -05:00
Phxntxm 60f2b0e2e5 Add a pluck method 2017-04-16 22:49:35 -05:00
Phxntxm d485f64f25 Allow PM's to not be ignored 2017-04-16 20:58:20 -05:00
Phxntxm 7f48f11586 Add a sorted method 2017-04-16 20:58:11 -05:00
Phxntxm 53f9183ab6 Correct what is attempted to be converted to limit 2017-04-16 18:03:32 -05:00
Phxntxm 5ac2d6f8ce Correct syntax error 2017-04-16 17:58:05 -05:00
Phxntxm bfd3f75836 Intuitively handle limit 2017-04-16 17:52:38 -05:00
Phxntxm a21fcdeec5 Update avatar to send as png to support transparancy 2017-04-16 17:43:29 -05:00
Phxntxm ba24b24933 Add server to globals for convenience 2017-04-13 21:55:57 -05:00
Phxntxm 58b8a0d125 Merge branch 'rewrite' of https://github.com/Phxntxm/Bonfire into rewrite 2017-04-13 18:42:36 -05:00
Phxntxm 46e28b81a1 Update to check if a message should be ignored 2017-04-13 18:30:14 -05:00
phxntxm ac8689881d Check if a message should be ignored 2017-04-11 00:22:11 -05:00
Phxntxm 38133ad8bb Add the ability to ignore channels/members 2017-04-10 20:26:28 -05:00
Phxntxm e531d0ab4d Correct issue where forbidden_tags were put in the wrong place 2017-04-10 19:44:10 -05:00
Phxntxm 71a9512888 Catch when a raffle is running in a server the bot is no longer in 2017-04-09 21:13:34 -05:00
Phxntxm f69b947cfb Correct region retrieving 2017-04-09 17:37:00 -05:00
Phxntxm 78b511c867 Compare the channel instead of the ID 2017-04-09 17:32:50 -05:00
Phxntxm 79994c6cf4 Convert files to the new discord.File format 2017-04-08 22:16:12 -05:00
Phxntxm 74d22f2d8d Update no_pm to use the decorator instead 2017-04-08 22:04:46 -05:00
Phxntxm 6029797f1c Removed strawpoll 2017-04-08 22:04:36 -05:00
Phxntxm f99afec44f Catch not being able to send a message 2017-04-08 21:51:39 -05:00