Giter Site home page Giter Site logo

dice-bot's Introduction

EvilLogic's Dice-Bot

A more intuitive Discord Dice Bot

Why?

Most bots that include dice rolling functionality require a !roll command or convoluted syntax. This bot bypasses that and simply uses a channel for rolling with simple sintax, making it much easier to roll any kind of dice (any number of times!) and consolidating it all to one channel.

Use

To add the bot to your server, authorize it with
https://discordapp.com/oauth2/authorize?client_id=332292348950347777&scope=bot&permissions=0
and make a channel named rolz. This name can be reconfigured easily if you host your own version of the bot.
Any message in rolz will be treated as a dice command if it starts with a number, and should be in the format of #(operator)#.

Example

3d6 will roll 3d6 and output the result
3d6d6 will roll a d6 3d6 times
3d6+1 will roll 3d6 and add 1
3d6+1 20d20 will roll 3d6 and add 1, then roll 20d20 and output each as separate rolls
3r6 will roll 3d6 and reroll any ones once

Math operators +, -, *, and / are also accepted

Installation

The bot requires python3 and the discord.py library. After you install both, make a discord bot with a user over at https://discordapp.com/developers/docs/intro and give the bot a token in the config file. Now all that's left is to add the bot to your server. Copy the link above and replace the number after "id=" with your bot's Client ID. Have fun!

dice-bot's People

Contributors

evillogic avatar

Stargazers

MurilinhoPs avatar

Watchers

James Cloos avatar  avatar

dice-bot's Issues

AttributeError:"client" object has no attribute "send message"

Current line 73 code
await client.send_message(message.channel, msg)
causes issues as object seems to no longer possess send_message attribute

the fix that works for me atm
await message.channel.send(msg)

As i am not well-versed with python, it may be not efficent solution, but solution nonetheless

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.