Code Monkey home page Code Monkey logo

quizcord-bot's Introduction

quizcord bot

Get it? 'cause it's a pubquiz bot for discord ๐Ÿ˜Ž๐Ÿ‘‰๐Ÿ‘‰

About

This little bot allows you to set up pubquizzes for discord, automatically posts the questions for you, evaluates answers and keeps track of points. Quizzes are created in YAML files and can be loaded via chat commands. The bot is also controlled via chat commands, only accesible by previously defined admins.

Setup

Installation

To get started clone this repository:

git clone https://github.com/sebastian-stubenvoll/quizcord-bot.git

Next either manually install the dependencies found in Pipfile or use pipenv install to get set up automatically.

A small disclaimer: This bot was written and tested in python 3.9, however any python version from 3.7 upwards should work. This is because parts of the code rely on dictionaries preserving insertion order.

Next set up an application and a bot user for it at the Discord developer portal. This is where you obtain your bot api token. Now create a .env file in the root directory of this repository containing entries for DISCORD_TOKEN and ADMINS. For example:

DISCORD_TOKEN="1234567890YOURTOKEN0987654321"
ADMINS="12345678987654321,000111000111000"

Note that ADMINS needs to contain a comma-separated list of Discord IDs. You can easily obtain someone's Discord ID by right-clicking on their avatar and selecting copy ID.

Now all there's left to do is creating your quiz (see next section).

Create a quiz

Coming soon...

quizcord-bot's People

Contributors

sebastian-stubenvoll avatar

Watchers

 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.