Coder Social home page Coder Social logo

tobybot's Introduction

TobyBot

Pre-reqs:

  • Discord bot created and added to a server
  • Discord bot token

Setup

  • Install python

Python commands are in context of Windows. Use python instead of py for Unix.

  • Create python virtual environment py -m venv .venv.
  • Activate the venv as the Python Interpreter
  • Install requirements pip install -r requirements.txt
  • Create launch.json file in the .vscode folder. Paste and save the following
    • Replace <token> with your Discord bot token:
    • Replace <bot_channels> with single line string of channel ids, separated by spaces. These are for restricted commands.
{
    "version": "0.2.0",
    "configurations": [
      {
        "type": "python",
        "request": "launch",
        "name": "Launch main",
        "program": "${workspaceFolder}\\packages\\TobyBot\\main.py",
        "env": {
            "TOKEN": "<token>",
            "BOT_CHANNELS": "<bot_channels>",
        }
      }
    ]
  }
  • Debug the solution

Supported Commands

  • !hello - Say hello to TobyBot!
  • !tobyclip - Request a cool TobyStamkos gamerclip ๐Ÿ˜Ž.
  • !rumble - Restricted command that only works during a Royal Rumble event. Randomly generates a 30-entrant Royal Rumble pool using the current members of the sender's voice channel.
  • !poll - Restricted command. Generates a poll of up to 10 options. Requires the following syntax of command and brackets: !poll {Title} [Option1] [Option2] ... [OptionN]
  • !what - WHAT?

Restricted commands can only be used in channels specified in the launch.json. The rest can be used anywhere.

Please Note

Some of the solution currently contains hard-coded references to custom emoji on a private Discord server

tobybot's People

Contributors

anthony-santos-13 avatar jcarlsoniv avatar

Watchers

 avatar

Forkers

jcarlsoniv

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.