diff options
author | 2018-03-08 02:00:24 +0100 | |
---|---|---|
committer | 2018-03-08 02:00:24 +0100 | |
commit | 50434dad7926ec3ee285791306af1c0015916d21 (patch) | |
tree | 98de2b0ffbe4de09fe77d46385f84dc6fded741c /scripts | |
parent | how do I keep forgetting the api. part (diff) |
Improving autocodeblocks (#23)
* adding better detection for misformatted python code, using the tags api instead of hardcoded hints and mentioning the user in the hint
* use a seperate string instead of msg.content
* Better comments and formatting
Own function for codeblock stripping
splitlines instead of split("\n"), because of readability
re.search instead of re.match, because re.match is too strict
if content.lower().startswith("python") instead of case sensitive
checking, because of readabilty
Reformatted hint
* More readability
Changed hint sentence
More descriptive variables
* Even more descriptive variable names
Fixed small cooldown bug
* forgot to save descriptive variable names
* i dont believe this
* typo at import
* reworked getting the tag, not sure if it works
* fixed old code
* oversaw one
* reworked the howto again
better stripping
* making the hint look better
* get_tag_data returns a dict ==> change .description to ['tag_content']
* if the codeblcok tag isnt found do nothing
* reformat of hint
* removed not needed f
* more changes to the hint
* lemon lied about fstrings
* order of arguments
* formatting
* logic error
* more foooormatting
and a debug note
* linter...
* still blank
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions