-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbot.py
23 lines (16 loc) · 832 Bytes
/
bot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from discord.ext import commands
import discord
from flipapi import getFlippers
bot = commands.Bot(command_prefix='f!')
@bot.event
async def on_ready():
print(f'{bot.user.name} has connected to Discord!')
@bot.command(name="flippers")
async def flippers(ctx):
flippers = getFlippers()
shipped, gotten = flippers.split()
embed = discord.Embed(title="Flippers Shipped", url="https://ship.flipp.dev/", description="Values taken directly from Flipper Zero live count website", color=discord.Color.orange())
embed.add_field(name="Flippers Shipped", value=f"The number of Flippers that have been shipped is: {shipped}", inline=False)
embed.add_field(name="Flippers Received", value=f"The number of Flippers that have been received is: {gotten}", inline=False)
await ctx.send(embed=embed)
bot.run(token)