Skip to content

Jerry12798/Krypto

Repository files navigation

Discord Bots

All-in-One Discord Bot with Auto-Moderation, Bump Advertising, Economy System, Moderation Commands, Mod Mail, Music Player, Vouch System, and Many More Commands & Features

Requirements

Configuration

  • Clone the Repository git clone https://github.com/Jerry12798/Krypto.git
  • Move into Repository's Main Directory cd Krypto
  • Install Dependencies pip3 install -r Requirements.txt
  • Create Config.json cp Config.json.example Config.json
  • Enter Information into Config.json (Create All Necessary Channels & Roles)
  • Place Bot's Logo in public/images (Must be Named Logo.png)
  • Create Favicons (Be Sure to Set PATH to /public/images/favicons)
  • Place Extracted Favicon Images into public/images/favicons

MongoDB Setup

  • Create MongoDB Cloud Account
  • Create MongoDB Organization
  • Create MongoDB Database
  • Create MongoDB Connection String (Connect -> Connect Your Application -> Python 3.4 or Later)
  • Enter MongoDB Client/Connection String into Config.json
  • Whitelist Host IP on MongoDB Cloud (Located in Network Access on Database Page)

Bot Listing Setup

TopGG

  • Submit Required Information to List the Bot
  • The Dashboard/Website URL is http://HOST_EXTERNAL_IP:5000
  • The Webhook URL is http://HOST_EXTERNAL_IP:7777/ggwebhook
  • The Webhook Authorization is Created by You and Entered into Config.json
  • Generate API Token for Bot and Enter into Config.json
Remove this Feature by Removing Line 25 in Cogs/Server.py, 201-308 in Cogs/Information.py, and 173-277 in Cogs/Slash/Info.py

Discord Bot List

  • Submit Required Information to List the Bot
  • The Dashboard/Website URL is http://HOST_EXTERNAL_IP:5000
  • The Webhook URL is http://HOST_EXTERNAL_IP:7777/dblwebhook
  • The Webhook Secret is Created by You and Entered into Config.json
  • Generate API Token for Bot and Enter into Config.json
Remove this Feature by Removing Line 239-249 in Cogs/Server.py

Discord Bots

  • Submit Required Information to List the Bot
  • The Dashboard/Website URL is http://HOST_EXTERNAL_IP:5000
  • Generate API Token and Enter into Config.json
Remove this Feature by Removing Line 250-260 in Cogs/Server.py

Reddit Setup

  • Create Reddit Account
  • Navigate to Reddit's Developer Portal
  • Create Personal Use Script (Redirect URI is the Bot's Invite)
  • Enter Client ID (Below Name & App Type) into Config.json
  • Enter Client Secret into Config.json
  • Enter Reddit Username into Config.json
  • Enter Reddit Password into Config.json
  • Enter User Agent (Name of App) into Config.json
Remove this Feature by Removing Line 77 & 747-761 in Cogs/General.py and 72 & 652-665 in Cogs/Slash/Everyone.py

Clash of Clans API Setup

Remove this Feature by Removing the Entire Cogs/COC.py & Cogs/Slash/CoC.py Files

Running

  • Move into Repository's Main Directory cd Krypto
  • Create Bot's Tmux Instance tmux new -s krypto
  • Move into Bot's Tmux Instance tmux a -t krypto
  • Start the Bot python3 Krypto.py
  • Create Site's Tmux Instance tmux new -s dash
  • Move into Site's Tmux Instance tmux a -t dash
  • Start the Dashboard python3 Dash.py
  • Stop the Bot CTRL + C, CTRL + Z, or &logout
  • Stop the Dashboard CTRL + C or CTRL + Z

Updating

  • Move into Repository's Main Directory cd Krypto
  • Run Git Fetch git fetch

Contributing

Links