Git Product home page Git Product logo

administratorbot's Introduction

Administrator bot

Overview

This is a quickly custom discord bot that allows the followings features:

  • Automatic creation / deletion of text and voice channels.
  • Bunch of commands to generate random outcomes.
  • The Flags game to learn every flags in the world !

Installation

This bot runs with Replit, but to make it works without having the replit page open forever or a paid account, we need to use a trick described below.

But first you need to follow the basic installation steps described in the video in the Ressources section (5 first minutes). You also need to follow those steps to use this bot:

  • Create an account on Replit and setup a Repl using the import from github option.
  • Setup the following environment variables:
    • TOKEN: Your own bot token
    • CHANNEL_ID: The voice channel id used to create custom public channels
    • PRIVATE_CHANNEL_ID: The voice channel id used to create custom private channels
    • CATEGORY_ID: The channel category id in which you want channels to appear.

The trick mentionned before to make sure the bot do not get killed by Replit is to setup a Flask server and ping it before Replit kill the bot. The Flask part is handled by the code itself, however we still need to use a bot that constantly ping a url.
To do that you can get the url after running the bot on Replit and just use UptimeRobot to setup the pinging bot.

If you have hard time with this part, please refer to the aforementionned video.

Ressources

Original video about bot Installation

administratorbot's People

Contributors

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