404 e5858fecb3
Added optional uvloop support.
uvloop uses libs used by node.js and has been shown to be a much more efficient event loop policy than the default Python asyncio implementation. If uvloop is installed, this is quietly changed before the bot is initialised. If uvloop cannot be set, either from not being installed, or from being used on an unsupported system such as Windoze, then nothing is changed.

The only change should be a slight increase in throughput if it is detected.

Please test first.
2018-05-21 13:54:54 +01:00
2018-05-21 03:51:28 +02:00
2018-05-20 22:29:14 +02:00
2018-05-21 03:08:06 +02:00
2018-05-21 03:43:38 +02:00
2018-05-21 03:08:06 +02:00
2018-05-21 13:54:54 +01:00

Sebi-Machine

Dedicated discord bot for Sebi's bot tutorial.

http://discord.gg/GWdhBSp

Important things to know

This bot extends the rewrite version of discord.py. A couple of variables have been added to give you easy access to a couple of objects listed here.

self.ownerlist

self.ownerlist can be used to retrieve a list of user ID's. (int). Those ID's belong to contributors.

self.defaultprefix

self.defaultprefix can be used to retrieve a str object of the default prefix.

self.version

self.version can be used to retrieve a float which represent the version number of the bot.

self.display_name

self.display_name returns a str which represent the display_name of the bot.

self.mainenance

self.maintenance is equal to True or False. If you would like to exclude code in the master branch, use this. Make sure this one is installed. example:

if self.mainenance:
    print('I am in the development branch')

if not self.mainenance:
    print('I am in the master branch)

With other words. self.mainenance returns False in production and True in developer modus.

Initialize a cog

Cogs can be placed in ./src/cogs. Overall the src folder is the place to put code in. Make sure to update the requirements.txt and it is important to add the name of your cog file into the cogs.txt list. Otherwise it may turn out that your cog wont load.

Update source code

There is a git command available provided by Dusty. S!git pull should pull the latest commits into the docker container. Make sure afterwards to reload the cog. If you are stuck in any way shape or form you can always contact anyone who works on this project. Dont forget to check S!help.

Description
Guild-bot
Readme MIT 359 KiB
Languages
Python 92.2%
JavaScript 7.8%