-
Notifications
You must be signed in to change notification settings - Fork 1
/
bot.py
29 lines (22 loc) · 923 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
24
25
26
27
28
29
import discord
import requests
import json
import datetime, time
from discord.ext import commands
client = discord.Client()
client = commands.Bot(command_prefix = '!')
@client.command()
async def nitrogen(ctx):
code = "https://discord.gift/" + ('').join(
random.choices(string.ascii_letters + string.digits, k=16))
embed = discord.Embed(title="Here is the generated nitro link!", description=f"{code}")
embed.set_thumbnail(url='https://i.ibb.co/hf4yqpp/Nitro-badge.png')
embed.set_footer(text="Source Code: https://github.com/Ocryol1337/Discord-Nitro-Generator-Bot")
await ctx.send(embed=embed)
## This "checks" the discord nitro because with the other one you cannot see if the nitro is valid or not!
@client.command()
async def nitrogen(ctx):
code = "https://discord.gift/" + ('').join(
random.choices(string.ascii_letters + string.digits, k=16))
await ctx.send(f"{code}")
client.run("TOKEN HERE")