Git Product home page Git Product logo

nikolans-robot-rewrite's Introduction

nikolan's robot rewrite

My Discord bot :3 it sucks

Setup

If you would like to self host the bot, you can do so with the following steps:

Caution

When generating Bot Tokens and API Secrets, do not share them with anybody!

Config File Setup

  1. Copy the example-config.cfg file, and rename the copied version to config.cfg. This is your config file.
  2. Enter the config.cfg file with a text editor, and change the values to fit you. We will generate a bot token in the next stage.

Discord Bot Token

All Discord bots require a Discord Bot Token to function. The steps to get one are as follows:

  1. Go to the Discord Developer Portal and log in with your Discord Account.
  2. Create a new application and fill in the information required.
  3. Go to the Bot section, and generate a new bot.
  4. Give your bot a username, and optionally, a PFP and banner.
  5. Copy the Bot Token. Go to the config.cfg file, and replace the value in bot-token with your bot token. Due to security reasons, you will only be able to view the bot token once from Discord Developer Portal before having to generate a new one.

Dependencies

The following dependencies are required to run the bot:
py-cord, g4f, requests, aiohttp, bing_image_urls, discord_webhook, py-cpuinfo, curl_cffi, sympy, aiofiles.

You can install these dependencies using PIP with the following command:
pip install py-cord g4f requests aiohttp bing_image_urls discord_webhook py-cpuinfo curl_cffi sympy aiofiles

Starting the Bot

Once you have have installed the required Python modules, generated your token, and filled in your config file, you can run the bot as follows:

  1. Navigate to the bot directory through the terminal.
  2. Once you are in the bot directory, run python main.py, and monitor for any errors in the terminal.

Credits

  • nikolan - Main bot developer
  • tom1212. - Helped take screenshots for the help command
  • restartb - Helped improve and organise code, made config system, improved docs
  • mat - Sand cat images
  • expect - Added a few commands

This project is licensed under GPLv3

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.