FoBot/bot/modules/github.py

18 lines
591 B
Python
Raw Normal View History

2018-11-06 10:06:32 +01:00
import discord
import traductions as tr
2018-09-20 00:18:53 +02:00
class MainClass:
name = "github"
def __init__(self, guild):
self.guild = guild
async def sourcecode(self,msg, command, args):
await msg.channel.send(tr.tr[self.guild.config["lang"]]["modules"]["github"]["sourcecode"])
async def on_message(self, msg):
if msg.content.startswith(self.guild.config["prefix"]):
command, *args = msg.content.lstrip(self.guild.config["prefix"]).split(" ")
if command == "sourcecode":
await self.sourcecode(msg, command, args)
return