Skip to content

Overhaul of various things#19

Open
SamusAranX wants to merge 42 commits into
MalHT:masterfrom
SamusAranX:master
Open

Overhaul of various things#19
SamusAranX wants to merge 42 commits into
MalHT:masterfrom
SamusAranX:master

Conversation

@SamusAranX

Copy link
Copy Markdown

The imagemacro module got completely overhauled. It no longer depends on gm, which was bad, it now just calls convert behind the scenes. Since gm's syntax was horrendous, this should make maintenance and the addition of new macros much easier. I also added a few new fonts.

The emojitext module has been replaced with the unicode module. The commands !ri and !clap are now in there and no longer suffer from the bot ping problem. There's also an option for !ri in the form of a boolean named avoidFlags that adds zero-width spaces to each character to avoid the display of flags in what's supposed to be text.

There are other small changes here and there, but nothing that should drastically alter functionality or break the bot.

SamusAranX and others added 30 commits August 20, 2018 11:24
Slightly reformats the status message
Adds proper pluralization for the number of servers uwubot is connected to
Adds config check to the Animals module to avoid a crash on startup
Adds an alias check to the Unicode module to avoid aliases being defined for multiple charsets
Removed the gm module entirely, since it was Bad
Added an option to use different fonts for each image macro

Cut the unicode module down to size and made it the new !clap
Removed the emojitext module since it was replaced by the unicode module
Added a boolean option "avoidFlags" to the unicode module to make !ri stop producing flags sometimes (default: false)
Fixed the bot ping problem for good
Added NotoEmoji-Regular font
Added version display to `!uwuhelp`'s output
Added "<module> loaded" messages to each module
Removed the autorole module
Fixed deprecation warning in the derail module by replacing sendMessage with send
Replaced all instances of readFileSync with simple require()s
Hopefully fixed random bot crashes by adding error handler
Prioritized uwuhelp command
Converted all callback-using functions I could find to use Promises
Changed package.json to use the latest versions of all dependencies
Changed startup banner
Changed config system to use deepmerge package instead of manual merging
Changed all bot modules' help string construction methods
Changed bot activity message to reflect the bot's current repository
Changed message handling routine to filter out other bots earlier
Changed command priority to allow !uwuhelp in uwubot's direct messages
Changed all bot modules that had a !list* command to instead print their usage when the main command is run without any arguments
Updated all bot module help texts
The imagetext module now uses the selected template's name as output image name instead of "dril.png"
Simplified animals module
Moved "command needs to be run in a server" message from individual bot modules to bot.js
Renamed !owo to !uwu and added a new !owo command that owofies text even more
Added date to console messages
Added !uwuinfo command to be used by bot owners
Added untested support for other people adding/deleting uwubot on their servers

Removed unused files
Reduced console spam in case of errors
Raised message text limit to 240 characters
Added two new fonts: Roboto Regular and Medium
Added preliminary permissions comment
Slightly edited server join/leave message
Replaced discord_emoji.json with package "emoji-aware"
Fixed !sheriff not accepting server emoji
Kind of broke !im's emoji support. Oh well.
Added animated emoji support to !sheriff
Also added support for emoji name lookup to !sheriff
Fixed server emojis for !sheriff
Added a better "unknown emoji" message
Moved module config from config.json to own moduleConfig.json file
Renamed server_config.json to serverConfig.json
Adjusted copypasta strings
Added more error messages to imagetext module
Updated dependencies
Added !hedgehog command
Made help text of animals module generate itself
Changed info in package.json since I'm the maintainer of this fork
Added text autosizing to imagetext module
Added more image templates
The bot now prints the template list when a requested template doesn't exist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants