Guilherme-Vasconcelos / ChessBot

A discord bot which allows you to play chess
GNU General Public License v3.0
1 stars 0 forks source link

Run as cog (more of a feature request) #23

Open fluorescentb opened 3 years ago

fluorescentb commented 3 years ago

What would be the easiest way to run this bot as a cog for another bot? I don't like too many bots clogging up my sever.

Guilherme-Vasconcelos commented 3 years ago

Hey, the main cog used to play the chess games can be found at: https://github.com/Guilherme-Vasconcelos/ChessBot/blob/master/bot/cogs/chess.py

You could copy the two classes (class Board, and class Chess which is the cog itself), then use the Chess cog in your bot (just make sure to install the python-chess library and import chess)