Giter Site home page Giter Site logo

qotd-manager's Introduction

QOTD-Manager

Video Tutorial: https://www.youtube.com/watch?v=DArlLAq56Mo

Intended Purpose

This program was intended to serve as a means of managing the questions on Headstarters QOTD Bot in these ways:

  1. Maintain a list of questions in questions.txt, with the question number cooresponding to the line number in the file.
  2. Add a list of questions from input.txt to the questions list.
  3. Using the requests library, post the questions to the server

.env

This program contains an .env file which contains the following

  • ID: Channel ID of a given Discord server. This can be found by right-clicking a channel in Discord and slecting "copy ID" (note that you must have "Developer Mode" enabled to do so. This can be found in Discord settings.)
    • Put in the .env file (hidden via the .gitignore file) for the sake of privacy.
  • AUTHORITY: Authorization tag. Go to discord on desktop, click f12, go to request headers -> authorization. This appears to work for any channel from what I can tell.
    • Also put in the .env file, although this varaible works for all servers.

Why It Doesn't Work As Intended

This program doesn't suit its intended purpose, as it posts the commands as a message, rather than it being sent to the bot itself. The program doesn't connect to the bot directly, and I thought that simply posting the command as a message would be interpreted as a command. It does not.

Code from Tutorial Video (with aforementioned .env varaibles added): https://github.com/russellelliott/QOTD-Manager/tree/45458d5f91f740a98ccde660f7bdd27cfe52bee4

qotd-manager's People

Contributors

russellelliott 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.