/KFCBot

The open source code for the official verified Discord bot KFC Bucket boy

Primary LanguageTypeScriptApache License 2.0Apache-2.0

KFC Bucket Boy

This is the offical Open source code for KFC Bucket Boy

Invite

Support Discord Server

Website


Setup

With yarn

  • rename example.config.yml to config.yml and add necessary data
  • Same case for example.ormconfig.json
  • run script yarn start or npm start
  • Make sure your postgreSQL database is turned on!
  • Enjoy cool bot

With Docker

  • Make sure Docker is installed and up to date
  • Rename example.docker-compose.yml to docker-compose.yml and add necessary data
  • Same case for example.ormconfig.json and example.config.yml
  • Run docker-compose build to build the docker image. this might take a while so sit back and relax :)
  • Run docker-compose up
  • Enjoy the epic bot running in docker :)
  • If you run into any errors dont hesitate to dm Melosh#0280 on discord or join the Support server

Example config.yml file:

# Make sure the id(s) are seperated by commas (,)
owners: 
  - "406211463125008386"
  - "355993074117115914"

devEnv:
    devServer: 
    - "DEV SERVER ID(s)"
    - "Multiple if needed"
    isDev: true

prefix: "PREFIX"

# Token Example: NzU4Mzg1STh3MgS5DHCsHsVY.X2uSag.71AkvJZaVe3R-s5Ay3GatchEdGe
tokens:
    botToken: "TOKEN"
    tenorAPI: "Key obtained from https://tenor.com/developer/dashboard"
    topGGAuth: 
        runTopgg: false # Should link to top.gg using credentials below?
        topGGKey: Token from https://top.gg on your bot page at the webhooks, Leave Blank you dont have a key
        topGGWebhookAuth: "Authorisation to recieve on upvote posts from top.gg"

Help Command
  • /help to get started! Some Commands are able to be used within dms (they do not required a prefix)

![](https://i.imgur.com/LQy80J4.png)
Notes
  • All notes are provided to help not spoonfeed

  • If you want to add a new value to the config.yml make sure to add it to config.ts too

  • Adding new commands is pretty easy just add a new file and copy the template, easy right?

  • ESlint has been added (and set to be as strict as possible) in here for extra help to help you style your code to be better (you can press ctrl + shift + p then click ESlint: Fix all auto-fixable Problems for some quick savers)

  • Alternatly you can use eslint "**" in the terminal to find any eslint problem

  • (Make sure to install the "eslint" and "markdown preview enhanced" plugins on visual studio code)