The neeble bot repository
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Kamal Curi 86b01d29a7 FIX: Auto-reconnect after connection lost on '--rq' 6 months ago
environment ADD google news env vars. 3 years ago
models SQLAlchemy no longer needs the 'autoload' argument 6 months ago
requirements Locked in requirements 2 years ago
settings ADD: Roulette leaderboard 2 years ago
utils FIX: Auto-reconnect after connection lost on '--rq' 6 months ago
.gitignore Personal virtual environments are needed, specially now that the version for the requirements have been locked in 2 years ago
Dockerfile FIX: Added requirements to docker image, added environment variables 3 years ago
LICENSE CHANGE: I forgot HMS changed GPL2 to support his own political views that I do not agree with. All versions starting from today will now have the strict GPL2 license.This has not been discussed with Kevin, but I do not want my code to be eventually irretrievable from a GPL3 fork. 3 years ago
Makefile CHANGE command. 3 years ago
README.md ADD: Persistent quote stack. 2 years ago
docker-compose.yml FIX: Added requirements to docker image, added environment variables 3 years ago
manage.py FIX migrate function. 3 years ago
motd FIX: Auto-reconnect after connection lost on '--rq' 6 months ago

README.md

Neeble bot


Dependencies

  • Python>=3.8
  • gcc or your compiler of choice
  • python3-dev
  • Your distro's mysql library (libmysqlclient-dev in Ubuntu)

You can also run neeble under docker with docker-compose


How to run

  • Make sure you are running a SQL server instance
  • Create a database named neeble
  • Set up your environment variables with environment/template (You may copy the template into a new file)
  • Make a file /opt/neeble/id.stack (or define your own with NEEBLE_STACK_FILE), it must contain an empty list ([])
  • Load environment variables with source:
    $ source environment/template
Run it locally using python

The Makefile provided will do all necessary migrations and start the bot:
$ make production

Run it under python

Build and start the container with docker-compose:
$ docker-compose up -d --build

FAQ

Q: Quoting emojis doesn't work!
A: Make sure, in the database neeble is using, that the columns quote and user in the table neeble_quotes uses collation utf8mb4_general_ci.

Q: Logs talk about "unauthorized intents", what's all this about?
A: Make sure your bot has all gateway intents enabled in the discord developer console.