Skip to content

Jobsays/Iscus_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Iscus, The Lady of Our Fate, is a dice bot for Discord

  All rolls are drawn from RANDOM.ORG
  See: (https://www.random.org/)
  This bot is designed to run in memory on a server or container of your choice

How to install:

  • (optional) create a Docker container to run your bot using docker.yaml as an example
  • download all files from this repository onto your server that will host the bot
  • Create an account on random.org and get your API key. Add this key to the env.env file and rename it to just .env on your server to make it a hidden file
  • do the normal steps to get a Discord bot token and add your application token to the .env file: https://youtu.be/SPTfmiYiuok
  • Launch your bot using Docker or install the requirements from requirements.txt manually with "pip install -r requirements.txt" and launch with "python main.py"

How to use:

  • Type a message beginning with ?roll followed by a dice expression. Example: ?roll 1d100
  • A maximum of four combinations of dice and/or modifiers are permitted per roll, in any order, such as ?roll 2d8+2-1d4+1, or ?roll 1d100+1d20+2d10-4d6. Each factor must be separated by a plus (+) or minus (-) symbol.
  • You can add a comment to a roll by adding a space after the roll expression and typing whatever you want, like: ?roll 1d100 Ragnar Trident(85)
  • Type ?help about or just ?about to see this info in Discord

New Features in v3.0:

  • Made the bot compatible with the latest version of discord.py and Discord's new API
  • Added the ?pick command to allow the GM to randomly pick from a list of comma separated names (IMPORTANT: don't add spaces after the commas!). Example: ?pick person1,person2,person3 takes random damage

New Features in v2.1.1:

  • Added the command ?skill that will calculate your degree of success based on your skill % like: ?skill 46 Swim
  • Fixed and issue with the the command ?skill for RuneQuest so a d100 result of >95 always fails.

New Features in v2.0:

  • Now will respond in Discord threads! Requires installing Discord.py beta v2.x or higher like: '''pip install -U git+https://github.com/Rapptz/discord.py'''
  • *roll changed to ?roll to make it one less tap from a mobile phone
  • No more need to type a * before a roll comment, you can now just leave a space like: ?roll 1d100 Ragnar Sanity(92)
  • Now supports minus signs in roll expressions like 2d6+1d4+2-1d3
  • Added support for rolling d2's
  • Better help documentation with ?help and ?help roll
  • Added support for @Iscus ping or ?ping commands (replies if online/alive)
  • Added some error handling to catch fat fingered roll formulas
  • Improved uptime from switching discord.Client() with on_message(message)to commands.Bot to reduce Discord API rate limiting

Known issues:

May Chael ever watch over your rolls and Phyth never weave them for you... Enjoy!

Releases

No releases published

Packages

No packages published

Languages