FoBot/modules/github.py
2018-09-20 00:18:53 +02:00

18 lines
591 B
Python

import discord
import traductions as tr
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