Skip to content

Instantly share code, notes, and snippets.

@KenwoodFox
Created April 29, 2020 23:05
Show Gist options
  • Save KenwoodFox/09955b7fae5fb3867f16ec91015a182f to your computer and use it in GitHub Desktop.
Save KenwoodFox/09955b7fae5fb3867f16ec91015a182f to your computer and use it in GitHub Desktop.
import discord
import asyncio
import games.poker
import logging as log
log.basicConfig(filename='last_run.log',level=log.INFO) # Setup logging
class CRTC_GameBot:
def __init__(self):
self.client = discord.Client()
def run(self):
self.client.run("not4u")
print("What happens after client runs")
@self.client.event
async def on_message(message):
print(message.content)
if __name__=="__main__":
bot = CRTC_GameBot()
bot.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment