funny-cat/resources/documentation/Unused/misc-stuff/ok-for-real-this-time/bot.py

20 lines
360 B
Python

import discord
from discord.ext import commands
import secrets
TOKEN = ('')
bot = commands.Bot(command_prefix='%')
@bot.event
async def on_ready():
print("client ready")
@bot.command
async def pecorine(ctx):
lines = open("pecorine.botdata").read().splitlines()
pecorine = secrets.choice(lines)
await ctx.send(f"{pecorine}")
bot.run(TOKEN)