Created
January 30, 2021 15:13
-
-
Save Erwin-afk/6aed144ee22e047c703527f922d6e3cf to your computer and use it in GitHub Desktop.
Discord bot in python
This file contains hidden or 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 | |
import time | |
from discord.ext import commands | |
from discord.ext.commands import Bot | |
client = commands.Bot(command_prefix="?") | |
@client.event | |
async def on_ready(): | |
print("------------------") | |
print("Logged in as") | |
print("Username: %s"%client.user.name) | |
print("ID: %s"%client.user.id) | |
print("------------------") | |
client.run("TOKEN") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment