Jishacum is a debugging and testing container for discordrb bots.
Jishacum is heavily inspired by Jishaku (a debugging and testing cog for discord.py bots).
Jishacum is aliased as jsc.
Show some information about the bot.
Debug a command.
Evaluate a code. You can see the shortcut variables in the
EVAL_SHORTCUTSfile.
Execute a command as someone else.
Repeat a command in the specified number times.
Restart the bot.
Run a Ruby code (e.g. jsc run
puts "hello").
Run a command line in the shell.
Shut down the bot.
Obviously, you must have a ready discordrb bot with Bundler to use jishacum.
$ git clone https://github.com/danrfq/jishacum$ cd jishacum$ bundle install
After installing the bundle, you must set OWNER_ID or OWNER_IDS (if your bot is owned by a team) in the config file. Otherwise, jishacum will not run.
# before
"OWNER_ID" => nil,
# after
"OWNER_ID" => 211756205721255947,
# or with OWNER_IDS
"OWNER_ID" => nil,
"OWNER_IDS" => [],
# after
"OWNER_ID" => nil,
"OWNER_IDS" => [211756205721255947, 903702557942243359],You may also need to change the MAIN_BOT_FILE_NAME variable if your main bot's file name is not bot.rb.
It's really simple, you just need to require jishacum container:
require_relative "jishacum/jishacum"and, include it to your bot:
bot.include! JishacumThat's it! Now you have jishacum container included in your bot.
A simple bot example using the jishacum container is in the bot file.
You can ask questions in this Discord server in the #support channel, or you can send me a DM in Discord: will.#0021.
