View gist:0d722ec9a6966fd81a8bf98cc29ef27a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello I am NixonXC I am the owner of EPIK MEMER today EPIK is going to shut down... because several reasons and we will work on a better bot for you all | |
another reason it is shutting down is slash command & stuff and much more next day will be epik's last day. I will be making epk's latest patch open source | |
on gtihub for any other devs to keep it continue or take inspiration. | |
I cant belive how far we have came to this journey but its time to end it... | |
NixonXC. |
View embds.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@bot.command() | |
async def embed(ctx): | |
embed=discord.Embed(title="Sample Embed", url="https://nixonxc.github.io/PyCord-Guide/", description="This is an embed that will show how to build an embed and the different components", color=0xFF5733) | |
await ctx.send(embed=embed) |
View slash.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import discord | |
bot = discord.Bot() | |
@bot.slash_command() | |
async def ping(ctx): | |
"""Check My Ping""" | |
await ctx.send(f"Pong! `{round(bot.latency * 1000)}ms`") | |
@bot.slash_command() |
View ex1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import discord | |
from discord.ext import commands | |
bot = commands.Bot(command_prefix='!', case_insensitive=True) | |
@bot.event | |
async def on_ready(): | |
print(f"{client.user} is ALIVE!!") | |
@bot.command() |
View ex2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@client.event | |
async def on_ready(): | |
print(f'Bot connected as {client.user}') |
View example.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import discord # importing discord | |
from discord.ext import commands | |
client = commands.Bot(command_prefix='!') # You can choose your own prefix here | |
@client.event | |
async def on_ready(): | |
print(f"Bot online and logged in as {client.user}") | |
# A simple command |