2018-10-08 23:41:54 +02:00
|
|
|
from bot 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
|