Code Monkey home page Code Monkey logo

thatkitebot's Introduction

KiteBot

A discord bot focused on science commands and fun stuff. No moderation for now.

Installation and first run

The following instructions will be for a debian server. (It is recommended that you add yourself to the docker user group to omit sudo for better security)

Install docker:

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io

Clone the repository

git clone https://github.com/ThatRedKite/thatkitebot.git

Navigate to installed folder and start the docker container

cd thatkitebot
sudo docker-compose up

Docker will download all dependencies and start. This can take a while. After it finishes starting hit ctrl+c to stop it and wait until it finishes.

Set API keys

nano ./data/init_settings.yml 

This will open nano editor where you will see something like this:

discord_token: ''
prefix: ''
tenor_token: ''

The tenor token is optional. discord_token is the discord bot API token you can get from discord. prefix is what the bot will use as a command prefix for example + or ex or any other string or character. Don't forger to turn on Privileged Gateway Intents in the discord bot panel (next to the bot API token).

After that is done hit ctrl + x, y and enter. The settings will be saved.

Starting the bot

To start the bot from a stopped state (like we have right now).

sudo docker-compose up -d thatkitebot

You will see it print:

Starting redis ... done
Starting thatkitebot ... done

To check the status of the container do sudo docker container ls you will see 2 containers redis:alpine and thatkitebot_thatkitebot that means everything is running. Now go to the server that you added the bot to and do +help (or whatever command prefix you chose) to see if it's working.

Stopping

sudo docker-compose stop

thatkitebot's People

Contributors

thatredkite avatar diminddl avatar dependabot[bot] avatar

Watchers

James Cloos 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.