Code Monkey home page Code Monkey logo

discordbot_add_roles_from_csv's Introduction

Discord BOT

Application has been made to mass role assignment on a discord server from a .csv file. .csv. Notice that bot is not safe, everyone could call commands, bot should be turn off after operation or improved.

IDE

Program written using PyCharm.

Bot command

  • $hello - to check whether bot is working
  • $install - trigger assignment proccess

Requirements

All dependencies are included in requirements.txt. You can install it using pip, or let PyCharm detect

$ pip install -r requirements.txt

Get started

  1. Prepere your .csv file. It should contain coulmn with ROLE_NAME (same as discord) and id's of users
  2. Download repository, unpack and go to project folder
  3. Copy .env.example file and remove .example postfix
  4. Adjust .env fields with your data
    • DISCORD_TOKEN your private token from https://discord.com/developers/applications
    • FILENAME - file should be in same folder as example.csv
    • ROLE_NAME_COLUMN - Indexing start from 0.
    • USER_ID_COLUMN=4 - Indexing start from 0.
  5. Run app using python python3 main.py or python src/main.py
  6. Add bot to your discord server
  7. Check bot by sending $hello on discord channel
  8. Run assignment proccess using $install on discord channel

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.