Giter Site home page Giter Site logo

waterlubber / thatkitebot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thatredkite/thatkitebot

0.0 1.0 0.0 26.97 MB

A discord bot written in Python (and C) with image manipulation commands and scientific calculators

License: MIT License

Python 93.34% C 6.37% Dockerfile 0.29%

thatkitebot's Introduction

ThatKiteBot

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

Installation and first run

The following instructions will be for a Debian system. There can be problems if your system uses SELinux!!! (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.json 

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

{
    "discord token": "",
    "tenor api key": "",
    "prefix": "+"
}

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 cuprum77 avatar woo200 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.