Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions discord/Python/app.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
import discord
from discord import Embed
from discord.ext import commands
from discord.ext.commands import Bot

bot = discord.Client()
bot = commands.Bot(command_prefix='!')

@bot.event
async def on_ready():
print('Logged in as')
print(bot.user.name)
print(bot.user.id)
print('------')
'''

@bot.command()
async def ping(ctx):
latancy = bot.latency
await ctx.send(f'Ping! {round(latancy*1000)}ms')
'''
await ctx.send(embed = Embed(description=f'Ping! {round(latancy*1000)}ms'))


bot.run("통큰")