1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 21:02:38 +00:00
Commit graph

572 commits

Author SHA1 Message Date
Myned
7e3e9d36f0 Removed score from paginator for aesthetic reasons 2017-10-31 14:27:30 -04:00
Myned
8b4a584aa3 Added e926 paginator 2017-10-31 14:21:42 -04:00
Myned
8d67775a7c Fixed url count 2017-10-31 00:49:02 -04:00
Myned
3388325aa5 Changed url list to dict w/ message to fix errors w/ references 2017-10-31 00:32:43 -04:00
Myned
12490206e5 Testinggggg 2017-10-30 23:36:28 -04:00
Myned
8eee78a70d Added ability to switch order:random tag for another order: 2017-10-30 23:35:40 -04:00
Myned
ba78274b36 Changed e621 icon to display score according to set ranges as emoji 2017-10-30 23:32:55 -04:00
Myned
17b8ccb895 Changed formatter to use any order: tag 2017-10-30 23:29:22 -04:00
Myned
801ee2be71 Changed "restart_(ch to chan)" to "startup_" for clarity with shutdown 2017-10-30 23:28:37 -04:00
Myned
ba10b668a7 Added restart/startup reaction to shutdown command 2017-10-30 15:48:00 -04:00
Myned
5df1703fb2 Added ability to change order tag 2017-10-30 15:44:41 -04:00
Myned
a3dd706674 Changed "0 or cancel" to 🛑 reaction for pool selection, tweaked format 2017-10-30 00:23:33 -04:00
Myned
5d053f2ca8 Added Abort exception init for passing message 2017-10-30 00:22:34 -04:00
Myned
80f15032f0 Added error catching for send command, changed to explicit lookup method 2017-10-30 00:21:45 -04:00
Myned
cf29e150d2 Added discord import alias 2017-10-30 00:21:00 -04:00
Myned
72850844c1 Converted \N unicode formatting to direct emojis for clarity 2017-10-30 00:20:40 -04:00
Myned
fdc2dd4631 Changed post author being displayed to artist(s) 2017-10-29 18:09:48 -04:00
Myned
d4707c7682 Reverted paginator method e6/pool combo to fix abort not catching 2017-10-29 17:56:38 -04:00
Myned
23954252a2 Added typing indicator for multiple pools 2017-10-29 17:55:40 -04:00
Myned
9271210342 Changed check-return to check-pass 2017-10-29 17:54:50 -04:00
Myned
2850d00d24 Cleaned unnecessary testing 2017-10-29 17:54:33 -04:00
Myned
0ebd06c4c1 Compressed history checks into one url loop, failed reaction tweak 2017-10-28 16:32:04 -04:00
Myned
0dc968f177 Fixed naming error 2017-10-28 16:30:46 -04:00
Myned
c6982862fd Tweaked command names 2017-10-28 16:30:07 -04:00
Myned
58db7ade4b Fixed naming error 2017-10-28 16:29:17 -04:00
Myned
ddc020e11d Removed periods from output for aesthetic purposes 2017-10-28 16:28:16 -04:00
Myned
dcc251496b Added current / total *ify status 2017-10-28 15:45:28 -04:00
Myned
985791e574 Removed colon from match output 2017-10-28 15:44:37 -04:00
Myned
844afd8600 Commented out WIP autopost command 2017-10-28 15:43:51 -04:00
Myned
7652f276cc Increased *ify limit to 30 2017-10-28 15:43:29 -04:00
Myned
10b876299a Changed to for missing commands for clarity 2017-10-28 15:42:02 -04:00
Myned
945840783b Removed bot user check for on_message for *ifying embeds 2017-10-28 15:41:11 -04:00
Myned
e74a3b0bc3 Optimized arg cleaning 2017-10-28 15:40:14 -04:00
Myned
6ee7a251d4 Removed redundant global definition 2017-10-28 15:39:04 -04:00
Myned
18bae80a1d Lowered rate for iqdb requests to reduce possibility of ip ban 2017-10-27 21:31:57 -04:00
Myned
21fc7d40fb Removed redundant "?id=" 2017-10-27 21:23:47 -04:00
Myned
06d5d562de Temporarily combined e6/pool paginator into one method for clarity 2017-10-27 21:08:52 -04:00
Myned
e51e2c124c Formatting tweak, removed try/except/finally block for logging purposes 2017-10-27 21:08:23 -04:00
Myned
1c212ee20d Added "0" in addition to "cancel" to abort wait_for 2017-10-27 21:07:49 -04:00
Myned
fac0cc58f0 Added getpool command 2017-10-27 21:07:06 -04:00
Myned
f1abf4e0b3 Testing n stuff 2017-10-27 21:06:41 -04:00
Myned
f121ccd3f8 Removed owner global access to paginator, starred > hearted, ordering 2017-10-21 16:45:26 -04:00
Myned
f96b5270c9 Added redundant check for image position input (> 0) 2017-10-21 16:44:05 -04:00
Myned
82729dc6c1 Added alias for paginator 2017-10-21 16:43:01 -04:00
Myned
51205c31bc Changed internal methods to use leading underscores 2017-10-21 16:42:32 -04:00
Myned
0658a62823 Lowered timeout for image position 2017-10-21 16:41:58 -04:00
Myned
4bd72a160f WIP endpoint command 2017-10-21 16:41:22 -04:00
Myned
3c09863a60 Error formatting tweak 2017-10-21 16:41:01 -04:00
Myned
04ec3b9955 Fixed commands not showing in help if checks fail 2017-10-21 16:40:36 -04:00
Myned
4528c6fe10 Testing with audit logs 2017-10-21 16:40:06 -04:00
Myned
4faa5b9bb7 Whitespace inconsistency 2017-10-21 16:39:11 -04:00
Myned
894cbf8687 Tweaked UA header 2017-10-21 16:38:49 -04:00
Myned
392679a26d Send command __ fix 2017-10-20 16:26:13 -04:00
Myned
3fa251114a Prefix command change to accommodate guild prefixes 2017-10-20 16:25:40 -04:00
Myned
8b0d3d5bb3 Added Execute and Evaluate exceptions to be caught in the command 2017-10-20 16:25:12 -04:00
Myned
12c577d9b1 2 > 4, WIP console tweaking 2017-10-20 16:24:43 -04:00
Myned
9edaac7803 Removed global nl 2017-10-20 16:24:19 -04:00
Myned
51a002bb3f 2 > 4 space 2017-10-20 16:23:27 -04:00
Myned
8a0ba12f20 Added prefixes dict to settings file 2017-10-20 16:23:01 -04:00
Myned
c1a0f5850d User-Agent tweak 2017-10-20 16:22:14 -04:00
Myned
dc63ec794e isdigit() 2017-10-20 16:20:47 -04:00
Myned
e927ccca9d Added "LOADED :" 2017-10-20 16:20:33 -04:00
Myned
22afd87d8b ⚠️ > \N{WARNING SIGN} 2017-10-20 16:19:58 -04:00
Myned
4d92778c8a Misc testing 2017-10-20 16:19:15 -04:00
Myned
1443dce356 on_message override to check if invoker is bot 2017-10-20 16:17:55 -04:00
Myned
d576e4d6a3 Compressed add_cog to for loop 2017-10-20 16:17:16 -04:00
Myned
1ecd790f83 Prefix per guild command 2017-10-20 16:16:05 -04:00
Myned
a74c08867a 2 > 4 space 2017-10-20 16:15:18 -04:00
Myned
8e0d8259fb suppress ValueError > isdigit(), reaction order logic 2017-10-20 16:14:24 -04:00
Myned
d86c695ee4 WIP auto e6 post command 2017-10-20 16:12:57 -04:00
Myned
30d558177e Reaction order tweak 2017-10-19 12:42:19 -04:00
Myned
ad5604db14 WIP help doc strings, added react add/remove, starred count, formatting 2017-10-19 04:40:50 -04:00
Myned
ff2ac1b587 Misc testing and shit 2017-10-19 04:39:41 -04:00
Myned
d137ad40b1 Compressed try/excepts into a suppressing for loop 2017-10-19 04:39:18 -04:00
Myned
144e90abc1 Converted emoji to unicode names, fixed emoji parsing w/ devon d.py fork 2017-10-18 14:09:13 -04:00
Myned
f96d36be0e Fixed appending to None 2017-10-17 23:32:32 -04:00
Myned
f76e4da5fc Comment change (because reasons) 2017-10-17 23:32:12 -04:00
Myned
b1e189c335 Added m, prefix 2017-10-17 20:46:43 -04:00
Myned
eaf6d0cd9f Caught limit out of bounds 2017-10-17 20:29:30 -04:00
Myned
389469bfbb Import error 2017-10-17 20:28:56 -04:00
Myned
09b456faf3 Hopefully fixed the various conceptual errors qwq 2017-10-17 20:13:40 -04:00
Myned
6f38e0bc8e 4 space > 2 space 2017-10-17 19:04:45 -04:00
Myned
f4da3c6705 Should fix improper returns 2017-10-17 19:04:34 -04:00
Myned
5ea671d764 Temp fix for temp folder not being created 2017-10-17 18:10:00 -04:00
Myned
1cc3a3736e Should fix wrong error catching 2017-10-17 18:04:43 -04:00
Myned
be805f9bb2 Included custom destination in hi command 2017-10-17 18:02:31 -04:00
Myned
5312e7a18b Converted history flattening and check to async iteration 2017-10-17 18:02:00 -04:00
Myned
e8b672b98e Converted message arg to consume all consecutive args as a single string 2017-10-17 18:01:15 -04:00
Myned
a5aff3da53 Tweaked base error output 2017-10-17 18:00:20 -04:00
Myned
bd46cfeccb Disabled logging for now 2017-10-17 17:59:58 -04:00
Myned
4d6659d167 Helper method for cleaning command args, implicit truth tweak 2017-10-17 17:59:44 -04:00
Myned
ca0d7c7400 Fixed success reaction on failure, added custom dest, fixed float limit 2017-10-17 17:59:08 -04:00
Myned
71ff248787 Fixed check not appending messages, added counter for remaining messages 2017-10-17 02:45:18 -04:00
Myned
daf8e1b1f3 WIP async for history(), unpin 2017-10-17 02:36:11 -04:00
Myned
74ac29d27c Formatting change 2017-10-17 02:29:06 -04:00
Myned
444d7e34c1 Increased deletion timeout to 10 mins 2017-10-17 02:28:44 -04:00
Myned
a9226660e6 Reverted change to uid 2017-10-17 02:25:23 -04:00
Myned
e9f46de6f3 d.Member -> d.User 2017-10-17 02:16:11 -04:00
Myned
c977a509f8 UID -> d.Member, pinned deletion message 2017-10-17 02:11:19 -04:00
Myned
347b121522 Fixed embed colors inhibiting dm command access 2017-10-17 01:52:06 -04:00
Myned
16fc5d663d Added dm report for on_error 2017-10-17 01:51:40 -04:00
Myned
b05561e254 Suppressed AttributeError for dms 2017-10-17 01:49:52 -04:00
Myned
16c7985942 Order of events logic with reactions 2017-10-17 00:41:58 -04:00
Myned
33a1a5f529 Added ability to remove starred images, fixed tags not adding to aliases 2017-10-16 23:49:15 -04:00
Myned
6cb1f18b5c Now logging errors in owner dms 2017-10-16 23:48:26 -04:00
Myned
5faf0eb5f5 Changed global rate limit to 2.2 from 2.1 2017-10-16 23:47:35 -04:00
Myned
17bc14bb20 Logging order 2017-10-16 23:47:16 -04:00
Myned
993dde4f73 Order of logging for most important logs 2017-10-16 23:47:02 -04:00
Myned
b9955b1c6c Pring id instead of name for anonymity 2017-10-16 23:46:31 -04:00
Myned
2573385361 Decorated commands with reactions, reverse > qualitify, formatting 2017-10-16 18:50:27 -04:00
Myned
5b4825954d Placeholder auto_rev command 2017-10-16 18:49:32 -04:00
Myned
e139ad7106 Added subject-to-change restart reaction to invocation ctx, info_channel 2017-10-16 16:52:54 -04:00
Myned
ab67ebc0c4 Added check for manage_channels 2017-10-16 15:58:05 -04:00
Myned
1953a06f9f Added reactions on most commands, changed manage_channels to messages 2017-10-16 15:51:33 -04:00
Myned
dabd472753 Added config option "playing" 2017-10-16 14:07:10 -04:00
Myned
f610a341be Removed listed_ids 2017-10-16 14:06:46 -04:00
Myned
e1a582be05 Added json functionality to helper methods 2017-10-16 14:06:31 -04:00
Myned
e6e9b59791 Fixed pool command, formatting 2017-10-16 13:18:17 -04:00
Myned
7a7a4e8130 Added auto_reverse command 2017-10-16 03:27:21 -04:00
Myned
72279ef005 Misc tweaks 2017-10-16 03:27:00 -04:00
Myned
d8d4b85074 Added auto_rev 2017-10-16 03:26:47 -04:00
Myned
d8618303a4 Added reverse image all, quality image all, get image commands 2017-10-16 02:08:20 -04:00
Myned
f63d7f65df try/except to suppress() 2017-10-16 02:07:15 -04:00
Myned
e21909faec FavoritesNotFound added to exceptions 2017-10-16 02:06:50 -04:00
Myned
3de252c96b get_image() from post 2017-10-16 02:06:33 -04:00
Myned
5c453cad41 Commented out unused code, WIP embed generator 2017-10-16 02:06:08 -04:00
Myned
384dadc93a Fixed http icon_url 2017-10-15 17:21:08 -04:00
Myned
a0da23dd92 Fixed loop changing end tag, logical method name, removed a alias 2017-10-15 16:18:09 -04:00
Myned
9ca2a745d9 Caught argument errors and rxed the exception for output 2017-10-15 15:32:35 -04:00
Myned
2cf9faf08f Support multiple attachments/urls, fixed missing args, added rate limit 2017-10-15 14:20:11 -04:00
Myned
f658918473 If/else order change, formatting 2017-10-15 13:31:05 -04:00
Myned
bee97afc3e Fixed MissingArgument 2017-10-15 13:30:40 -04:00
Myned
cb5d3549e4 Redundant is True 2017-10-15 12:58:30 -04:00
Myned
bfc39d7a99 WIP task cancellation on loop close, formatting 2017-10-15 12:58:16 -04:00
Myned
06c7428cc2 Converted except passes to suppress(), * > ctx.*, cleaned some code 2017-10-15 12:57:31 -04:00
Myned
1c0c63143f Create a single task to delete messages from any channel for rate limits 2017-10-15 02:14:34 -04:00
Myned
30f782ec95 Formatting change 2017-10-15 02:13:41 -04:00
Myned
b284bf837c Shortened u.tasks to not include the cog 2017-10-15 02:13:28 -04:00
Myned
d3471e7e51 msg > message 2017-10-15 01:50:37 -04:00
Myned
f706b4a18d Added ability to queue messages for deletion if they exist before cache 2017-10-15 01:49:10 -04:00
Myned
f85e969dc6 Caught failures to delete command invocations 2017-10-15 01:35:20 -04:00
Myned
0b6b964504 WIP testing for help command 2017-10-15 01:34:52 -04:00
Myned
85f7fc9430 Formatting change 2017-10-15 01:34:34 -04:00
Myned
f94303da60 Changed http icon url to local 2017-10-15 01:34:15 -04:00
Myned
a346dfca7e Formatting changes, changed to errext, caught CheckFailure 2017-10-14 23:41:42 -04:00
Myned
3c55f9bb05 Added settings.pkl for del_ctx checks 2017-10-14 23:40:56 -04:00
Myned
9a1d225b9b Fixed r.read() raising ClientConnectionError
Context manager was closing the request before methods could be run on it
2017-10-14 22:37:57 -04:00
Myned
ca530e1182 ctx.* shortcut 2017-10-14 21:55:10 -04:00
Myned
84f45d4f7d Formatting tweaks 2017-10-14 21:54:29 -04:00
Myned
33891cb409 Error output to ctx helper method 2017-10-14 21:54:18 -04:00
Myned
cecd1f3abc Changed session pool to be active only when needed
(issues arose with a globally active session)
2017-10-14 21:53:55 -04:00
Myned
00eec657da stdout and stderr output tweaks, ctx.* shortcut, WIP macOS notifier 2017-10-14 21:52:21 -04:00
Myned
42adc28e09 Added WIP favorites command 2017-10-14 15:29:53 -04:00
Myned
a3d906e63e Checked for session creation before closing, formatting change 2017-10-14 15:29:35 -04:00
Myned
b3435e3316 Overrode on_error to close connections and open terminal with traceback 2017-10-14 15:29:01 -04:00
Myned
225bebff0a Removed redundant "./" from file declarations, changed d.errors to err. 2017-10-14 15:28:00 -04:00
Myned
0777573193 Formatting, startup logic changes 2017-10-13 23:59:14 -04:00
Myned
a9178b0204 utils.config 2017-10-13 23:43:37 -04:00
Myned
81d8a31ea6 Converted to .format() 2017-10-13 23:41:32 -04:00
Myned
f0f0850c0e Changed tag command to search related tags, .format(), formatting, ctx 2017-10-13 23:40:38 -04:00
Myned
e72e0ae24f Converting string concatenation to .format 2017-10-13 23:39:48 -04:00
Myned
ada3aac86a utils.config 2017-10-13 23:39:12 -04:00
Myned
70c863062b utils.config, formatting fix 2017-10-13 23:38:58 -04:00
Myned
efd035fce5 Moved config file creation and loading into utils 2017-10-13 23:38:27 -04:00
Myned
2ff61c4794 Fixed alias name conflict, check for no command arg, pass ValueError 2017-10-13 21:57:57 -04:00
Myned
80050b9541 Added changing game status, removed prefix for exit, cleaned try/except 2017-10-13 21:53:44 -04:00
Myned
48b17e3ab2 Changed int() to round() to be slightly more accurate 2017-10-13 21:52:03 -04:00
Myned
5e65dcbb8f Passed CommandNotFound error, WIP dual reaction events 2017-10-13 21:51:38 -04:00
Myned
841470655c Added post author and pool name to e6 commands 2017-10-13 04:19:49 -04:00
Myned
62e95e5188 Changed all whiles to use bot connection status instead; WIP event loop 2017-10-13 01:24:57 -04:00
Myned
a905f3b945 Renamed background.pkl to tasks.pkl 2017-10-13 01:23:47 -04:00
Myned
33c80c7afd Fixed task reconnect, moved global LIMIT, various other stuffs 2017-10-13 01:23:18 -04:00
Myned
5d4e49bb4d Converted manual channel mention to implicit 2017-10-12 22:49:19 -04:00
Myned
d69ea81430 Whole bunch of miscellaneous tweaks that won't fit in summary, autopep8
Compacted try/except file creation blocks into an outsourced method, moved global variables to class instantiation, converted blacklists and alias list to sets that save to .pkl instead of .json, added pool paginator, various formatting changes,
2017-10-12 22:34:48 -04:00
Myned
da6ad9ba8e Removed redundant scraper methods, autopep8 2017-10-12 22:30:40 -04:00
Myned
af9ed570a2 autopep8, aiohttp session methods 2017-10-12 22:30:07 -04:00
Myned
8f304893e3 WIP testing for dual reaction add/remove event listeners, moved commands 2017-10-12 22:28:16 -04:00
Myned
1f794ffd6f autopep8 and isort 2017-10-12 22:27:21 -04:00
Myned
25afa93aa3 Moved owner commands to Bot class, undid unpythonic formatting 2017-10-12 22:26:57 -04:00
Myned
2bd2808bfc Cleaned up formatting with autopep8 2017-10-12 22:26:22 -04:00
Myned
da78317188 Moved setdefault to the if statement, changed output, added error catch 2017-10-11 11:26:26 -04:00
Myned
9c06d7bfa9 Removed traceback limit 2017-10-11 11:25:37 -04:00
Myned
f29750a78f Exception error change and pass for NotFound 2017-10-11 11:15:26 -04:00
Myned
5264a93050 Rate limited post saves over 5 2017-10-11 11:09:15 -04:00
Myned
a9b7689760 Added Exists exception class 2017-10-11 11:08:46 -04:00
Myned
de967d68cb Changed default perms 2017-10-11 11:08:32 -04:00
Myned
6f6d6be9df Checked for channel before looping 2017-10-11 11:08:18 -04:00
Myned
25c28a509f Added reaction paginator, WIP .format conversion, del blacklist 2017-10-11 03:12:13 -04:00
Myned
79c53fd8d0 WIP temp images to clear periodically 2017-10-11 03:11:00 -04:00
Myned
a6e2b50b1c Pruning all user messages, WIP command structure, channel auto-delete 2017-10-11 03:05:05 -04:00
Myned
1415c92fcc WIP YouTube upload command 2017-10-11 03:01:13 -04:00
Myned
89329f52c3 Console command and arbitrary code execution 2017-10-11 02:59:06 -04:00
Myned
4fd66713cb Added reaction exception classes to raise in except blocks 2017-10-11 02:58:17 -04:00
Myned
a439d8d917 Testing, on_ready cogs, .format conversion, and misc changes 2017-10-11 02:57:17 -04:00
Myned
e5fa7c35a6 Changed tostring to better format tag output 2017-10-11 02:55:49 -04:00
Myned
a99b9a9626 Added dev utils to facilitate methods and file access 2017-10-11 02:54:32 -04:00
Myned
48e442b5a2 Insourced restart command 2017-10-11 02:53:40 -04:00
Myned
0ee61c8084 Added prune all user command 2017-10-04 16:29:13 -04:00
Myned
dd284701ee Added base exception catching 2017-10-02 19:40:51 -04:00
Myned
08d7f160f8 Compacted class formatter for visibility 2017-10-02 19:38:44 -04:00
Myned
c8571d1c7a Added try/except blocks to subcommands 2017-10-02 19:37:58 -04:00
Myned
fd464d948f Added ctx.message deletion, small str change 2017-10-02 17:32:53 -04:00
Myned
ac17187b1a Finished restart command 2017-10-02 17:29:39 -04:00
Myned
86311aba96 Placeholder for restart bot command 2017-10-02 15:24:57 -04:00
Myned
832acbba81 Added complete exception message from cogs/booru
also messing with youtube auths and uploading
2017-10-02 15:24:34 -04:00
Myned
8d11679435 Moved around cog adding to better align file creation 2017-10-02 15:22:52 -04:00
Myned
c45663930e Added listed ids dict 2017-10-02 15:22:12 -04:00
Myned
02e69edba7 Added check for list of permitted ids 2017-10-02 15:20:50 -04:00
Myned
41c5f86181 Fixed KeyError, added limit extension, and playing with last_command 2017-10-02 15:20:04 -04:00
Myned
9041af8463 Shrunk image precheck and fetching checks 2017-10-01 15:40:35 -04:00
Myned
97f3d3a1bc Combined separate blacklist files into one 2017-09-30 04:12:24 -04:00
Myned
8420f3ee57 Adding alias filtering and removed set command 2017-09-30 03:27:57 -04:00
Myned
b4346cb334 Added check for shutdown output 2017-09-27 14:49:21 -04:00
Myned
3c2f5c5cc0 STUFF AND THINGS OKAY 2017-09-27 01:36:27 -04:00
Myned
0f9c961966 Did stuff and things 2017-09-25 15:31:51 -04:00
Myned
0cb8f2876b Am g0 by3e 2017-09-24 16:33:48 -04:00
Myned
7259fb1766 "Fixed invite link command" 2017-09-24 15:30:30 -04:00
Myned
bb3721478f "Added prefix to config and fixed initial startup" 2017-09-24 15:13:36 -04:00
Myned
3d02095687 Fixed config file creation 2017-09-24 14:09:02 -04:00
Myned
139502c021 "Edited an indent" 2017-09-24 11:52:26 -04:00
Myned
ec927178b6 "Folder rename" 2017-09-24 11:32:35 -04:00
Myned
49fcdad56e Initial commit 2017-09-24 11:05:28 -04:00