Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import discord
- from discord.ext.commands import Bot
- from discord.ext import commands
- import asyncio
- import time
- Client = discord.Client ()
- client = commands.Bot(command_prefix = "=")
- @client.event
- async def on_ready():
- print("Real Talk is ready for hiqh quality access!")
- @client.event
- async def on_message(message):
- if message.content == "rtgang":
- await client.send_message(message.channel, "Real Talk Gang!")
- elif message.content.upper().startswith("=PING"):
- userID = message.author.id
- await client.send_message(message.channel, "<@%s> Pong!" % (userID))
- elif message.content.upper().startswith("=SAY"):
- args = message.content.split(" ")
- #args[0] = ?SAY
- #args[1] = Hey
- #args[2] = There
- #args[1:] = Hey There
- await client.send_message(message.channel, "%s" %(" ".join(args[1:])))
- elif message.content.startswith("=about"):
- emb = (discord.Embed(description="This is the Real Talk Bot! It's developed by Parched. :smile:", colour=0xff0000))
- emb.set_author(name="About RT Bot", icon_url="https://cdn.discordapp.com/attachments/520265639680671747/533389224913797122/rtgang.jpeg")
- emb.set_footer(text="Developed by Parched in discord.py, which is a python library.")
- await client.send_message(message.channel, embed=emb)
- if message.content.startswith("=help"):
- helpmsg = discord.Embed(description="Here are the commands, prefix is =.", colour=0xff0000)
- helpmsg.set_author(name="Commands", icon_url="https://cdn.discordapp.com/attachments/520265639680671747/533389224913797122/rtgang.jpeg")
- helpmsg.add_field(name="=help", value="Displays all commands.", inline=True)
- helpmsg.add_field(name="=about", value="Just a little information box.", inline=True)
- helpmsg.add_field(name="=say", value="Admins can announce information with it.", inline=True)
- helpmsg.add_field(name="=ping", value="It just says Pong as soon as it gets your message!", inline=True)
- helpmsg.add_field(name="rtgang", value="Just type rtgang in chat, nothing much.", inline=True)
- helpmsg.set_footer(text="Developed by Parched in discord.py, which is a python library.")
- await client.send_message(message.channel, embed=helpmsg)
- client.run("NTMzMzczMTcwNDQ3NTQ4NDE2.DxqGtQ.81VR-2nPPwjvUkU44zc_PAgqnJQ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement