Releases: robflop/robbot
Version 1.9.0
Yay, after two minor releases, a new "full" one.
Eval
command
-> Evaluate javascript input (owner-only, use with caution)
-> Input must be enclosed by quotes (e.g.robbot, eval "1+1"
)- Updates to the
help
command output - Example config
- Updates to the message sent if user is missing authorization for a command
- Update to the cooldown check
Version 1.8.2
Another minor release, again featuring minor changes.
- 10 new sounds
- Counter history
-> Pass "history" after thecounter
command. - General adjustments/fixes
(that's all)
Version 1.8.1
Not many extreme changes, but I still wanted to push these out as a release, so minor 1.8.1 release here we go!
- Adjustments to error logging
- 28 (!!) new Sounds for both randomSound and playSound
- Case insensitive sound input for playSound
- Crash fix if the user which called the randomSound or playSound command left the channel before the file finished playing
- Rename base file to robbot.js
- Syntax help for all commands (
help <commandname>
) - Adjustments to help output
- Limit avatar file format argument
Version 1.8.0
It's time for a new release!
There are two new commands -- one functional, one joke. Namely toggle
and kys
.
The toggle
command, as the name says, allows mods/admins of discord servers to disable the use of certain commands on their server. Only their server will be affected by this. In addition, the toggle
command itself aswell as the help
command (and any non-existing commands) cannot be toggled at all.
The kys
command is just a stupid joke that makes the bot reply with "kms" and will set the bot's status to Invisible (appear as offline) for 2,5 minutes and then go back to online. No other effects.
Other changes:
The ready messaged logged into the console at boot is now limited to displaying once. This means that if the bot has to reconnect, it will not re-display the ready message anymore.
The bot now also logs "critical connection errors" and adds timestamps for all events, so you can actually track what happened, when, and what may have caused it.
There are 6 more sounds for both randomSound
and playSound
. All these are also available on https://megumin.love.
The stats message will now be split, for the occassion that the server list exceeds the 2K character limit.
Version 1.7.0
Commands are now reloadable without restarting the bot.
Just use the reload
command and pass a command name to reload, and the bot'll have it done within a second. The argument passsed to the reload command is case-insensitive, so even passing sETgaMe
will properly reload the setGame
command.
The help
command listing automatically gets updated so if a command is added/removed/changed it'll automatically pick it up and take action.
Also, a new new command, playSound
, has been added.
The functionality of this is the same as of randomSound
, with the difference being that you can choose which sound it'll play. If you pass no sound to the command, the bot will tell you to specify a sound and send a list of available sounds to play.
Minor changes include:
Add festive emotes for the counter emote on special counts, updating the readme, adding an invite link to the about
command and bringing the randomsound
and playsound
command to camelCase naming scheme.
Bug fixes include:
The bot no longer crashes if it is sent a command via private messages. This crash happened because it was checking for a server ID and for permissions once a command is sent, but as there is no server ID nor are there permissions for private messages, it could not read those values and crashed. This should no longer happen.
Version 1.6.0
Per-server ignore lists! No more global ignore list, which means I can now allow mods/admins (*) of discord servers to use this command.
So even if you’re being ignored on one server, you can still use commands on the other.
Also, a new command, setNickname
! This will allow mods/admins (*) of discord servers to rename the bot server-wide to whatever they wish. I won’t be held responsible for any nicknames though, that’s not under my control. In addition, the command will only work if the bot has the permission to set its own nickname (duh).
The setName
command has thus been renamed to setUsername
, and is still only usable by the bot owner.
Minor changes include the command handler now only reading .js files, the ignore handler only reading .json files, an improved readme and the official re-naming to “robbot” and some bug fixing (error handling if request is undefined, owner id check if no ignore list exists for a server) and various comment changes here and there.
(*) “Mods/Admins” refers to everyone that has either the kick or the ban permission. Also, the bot owner retains the ability to use the ignore
and setNickname
command on any server the bot is on without requiring either kick or ban permissions.
Version 1.5.0
New command and event handler!
No more few-hundred-line long app.js! All commands are now seperated into a file of their own, events are all in the event handler file. The path in which the commands are stored is also configurable in config.json.
New commands will be automatically picked up by the command handler, as long as they export their contents as a function which passes bot, msg, timeout, permission under exports.main and a command description under exports.desc. This will guarantee that they are also automatically added to the command listing of the 'help' command.
See existing commands for examples.
Newly added commands can then be used via .
The name of the file determines the command name. In addition, command names are case insensitive.
New events have to be added directly to event_handler.js.
Besides that, various updates to the readme and the package file.
Version 1.4.0
V1.4.0!
Now includes a command to display the logs it writes, sent to you via PM.
The command uses a whitelist, giving any other file than the configured log names in config.json will not work.
A "POST" command for usage with the DiscordBots website has also been added, but is disabled by default. If you want to use it, enable it in the config.json and fill out your token. Then simply use the command.
Also, tons of adjustments to general syntax aswell as comments.
Version 1.3.0
Woop woop, new version!
Features:
- Better media playing (randomsound) using prism-media and the indev-prism branch of discord.js
- Checks to see if the bot can send messages to a channel a command is called in
- Checks to see if the bot can connect to the voice channel a person calling a command that requires voice chat is in
- An alternating "playing" status for the bot (5min interval)
- Command to ignore and un-ignore discord users (includes logging)
Fixes:
- Fix the time displayed in logs (MM -> mm | MM = months, mm = minutes)
Removals:
- Remove the npm start script, as it is unnecessary and uses a considerable amount of memory (just use node app.js)
Version 1.2.0
Version 1.2.0!
New stuff:
- New command handler! Now checks for the prefix, and then for the commands. No prefix = ignored. Also ignores bot messages.
- Code comments on everything! (mostly)
- A customizable bot command prefix! Took me a while to make this not mess up the logs, but I finally got it done. Even stupidly long prefixes such as "3i94u34738474349ndf,,,,,--.,.,." or one-symbol prefixes such as "?" work in execution and logging!
- More I might have forgotten to mention.