GithubHelp home page GithubHelp logo

iainbot's Introduction

Iainbot - A discord bot inspired by one of my lecturers.

Getting started

  1. Make sure you've downloaded Python 3.9
  2. Create a virtual environment on this folder with venv
  3. Enter the virtual environment using the activate script in \Scripts
  4. Use pip to install the bot's requirements: pip install -r requirements.txt
  5. Run the bot - it'll create a file called iain.cfg, you'll need to put your token there.

Connecting to a server

You'll need to use the Discord Developer Portal to create the bot.

You can follow this tutorial to learn how to do that (you'll only need the linked section).

Once you've done that, you can get your bot token, add it to the config file, and then use the portal to invite the bot to a server that you own. The bot has code in it to pre-fill the config file with the necessary variables for the bot to work.

You'll need to go into the config file (iain.cfg) and add your admin roles to the file. Example: admin_roles = admin,mod You'll also need to ensure that whoever is configuring the bot has admin permissions.

Bot commands

Once you're in a server, type !help to see a command list. You can also type !help <commandname> to get more detailed help on that command.

In order for a bot to assign/unassign roles, you must make sure the bot is of a higher rank in the server than those roles.

iainbot's People

Contributors

maxfyall avatar ndv99 avatar

Watchers

 avatar  avatar

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.