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
26 changes: 13 additions & 13 deletions LinkGen.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async def on_ready():
except Exception: print("[ERROR] Gen Role not set")
try: client.guilds[0].get_channel(int(json.loads(open("config.json", "r").read())["gen_channel"]))
except Exception: print("[ERROR] Gen Channel not set")
services = ["nordvpn", "hulu", "expressvpn", "nitro", "creditcard", "spotify", "netflix", "disney", "minecraft"]
services = ["discord", "epicgames", "steam", "nitro", "spotify", "roblox", "tiktok",]
for service in services:
if os.path.exists(f"accounts/{service}.txt"): pass
else:
Expand All @@ -51,12 +51,12 @@ async def on_ready():

# Generate Command

@client.slash_command(name="generate", guild_ids=[json.loads(open("config.json", "r").read())["guild_id"]])
@client.dot_command(name="gen", guild_ids=[json.loads(open("config.json", "r").read())["guild_id"]])
async def generate(ctx, service_name):
if str(ctx.channel.id) != json.loads(open("config.json", "r").read())["gen_channel"]:
await ctx.respond(f"You can only gen in: <#{json.loads(open('config.json', 'r').read())['gen_channel']}>", ephemeral=True)
else:
services = ["NordVPN", "Hulu", "ExpressVPN", "Nitro", "CreditCard", "Spotify", "Netflix", "Disney", "Minecraft"]
services = ["discord", "epicgames", "steam", "nitro", "spotify", "roblox", "tiktok"]
for service in services:
if service_name.lower() == service.lower():
if str(json.loads(open("config.json", "r").read())["gen_role"]) in str(ctx.author.roles):
Expand All @@ -69,13 +69,13 @@ async def generate(ctx, service_name):
try:
embed = discord.Embed(title=f"{service} Account Generated", description="LinkGen Account Generator", color=0x46a9f0)
embed.add_field(name="Login Credentials", value=f"```{data[0]}```", inline=True)
embed.set_thumbnail(url="https://cdn.discordapp.com/attachments/773133136929226763/797204521997828106/777514274829893683.gif")
embed.set_thumbnail(url="https://cdn.discordapp.com/attachments/1288705140240678925/1322774408720420954/standard.gif?ex=67a77dea&is=67a62c6a&hm=56924172e7380dd6f5391e2137e1650734e1e5db59b58582c458124184403a82&")
user = await client.fetch_user(int(ctx.author.id))
await user.send(embed=embed)
log = client.guilds[0].get_channel(int(json.loads(open("config.json", "r").read())["log_channel"]))
embed = discord.Embed(title=f"{ctx.author.name} has genned 1 {service}", description=f"**Account**\n```{data[0]}```", color=0x46a9f0)
embed = discord.Embed(title=f"{ctx.author.name} has genned 1 {service}", description=f"**Account**\n```{data[0]}```", color=00FFFF)
await log.send(embed=embed)
await ctx.respond("Account Generated, check your DM")
await ctx.respond("Account Generated!! check your DM please")
except Exception:
await ctx.respond(f"We are currently out of {service}!", ephemeral=True)
else:
Expand All @@ -85,23 +85,23 @@ async def generate(ctx, service_name):

# Help Command

@client.slash_command(name="help", guild_ids=[json.loads(open("config.json", "r").read())["guild_id"]])
@client.dot_command(name="help", guild_ids=[json.loads(open("config.json", "r").read())["guild_id"]])
async def help(ctx):
embed = discord.Embed(title="LinkGen help command", description="Usage: /generate <service name>, /stock", color=0x46a9f0)
embed.add_field(name="All Services", value="``nordvpn``, ``hulu``, ``expressvpn``, ``nitro``, ``creditcard``, ``spotify``, ``netflix``, ``disney``, ``minecraft``")
embed.set_footer(text="Made by Snikker#1337")
embed = discord.Embed(title="Cronaus help command", description="Usage: /generate <service name>, /stock", color=00FFFF)
embed.add_field(name="All Services", value="``discord``, ``epicgames``, ``steam,``, ``nitro``, ``spotify``, ``roblox``, ``tiktok``,")
embed.set_footer(text="Made by Cronaus")
await ctx.respond(embed=embed)

# Stock Command

@client.slash_command(name="stock", guild_ids=[json.loads(open("config.json", "r").read())["guild_id"]])
@client.dot_command(name="stock", guild_ids=[json.loads(open("config.json", "r").read())["guild_id"]])
async def stock(ctx):
services = ["NordVPN", "Hulu", "ExpressVPN", "Nitro", "CreditCard", "Spotify", "Netflix", "Disney", "Minecraft"]
services = ["discord", "epicgames", "steam", "nitro", "spotify", "roblox", "tiktok"]
stocklist = []
for service in services:
if os.path.exists(f"accounts/{service.lower()}.txt"):
stocklist.append(f"{service} stock: {len(open(f'accounts/{service}.txt', 'r').readlines())} accounts")
embed = discord.Embed(title="LinkGen Stock", description="Display's stock of all services", color=0x46a9f0)
embed = discord.Embed(title="LinkGen Stock", description="Display's stock of all services", color=00FFFF)
embed.add_field(name="Stock", value="\n".join(stocklist))
embed.set_footer(text="Made by Snikker#1337")
await ctx.respond(embed=embed)
Expand Down