Message
Message
statuses = [".gg/curemarket"]
PINGS_RESET_CHANNEL_ID = 1260927186219827231
SLOT_OWNER_ROLE_ID = 1256166878502719509
CATEGORY_1_ID = 1190250041265369088
CATEGORY_2_ID = 1258391337376677959
CATEGORY_3_ID = 1259457387891523604
@bot.event
async def on_ready():
print(f'We Have Connected As {bot.user}')
print('- G R A B A ')
reset_mentions.start()
change_status.start()
update_timer.start()
now = datetime.now()
if now > reset_time:
mention_count = {}
reset_time = now + timedelta(days=1)
channel = bot.get_channel(PINGS_RESET_CHANNEL_ID)
if channel:
await channel.send("Nukes have been reseted!\nPings have been
reseted!")
channel = bot.get_channel(PINGS_RESET_CHANNEL_ID)
if channel:
await channel.edit(topic=f"Pings reset in {hours_left} hours and
{minutes_left} minutes")
@bot.command()
async def time_left(ctx):
now = datetime.now()
time_left = reset_time - now
hours_left = time_left.seconds // 3600
minutes_left = (time_left.seconds % 3600) // 60
@bot.event
async def on_message(message):
if message.author.bot:
return
global mention_count
if slot_configs["pings"][ping_type] == 0:
embed = discord.Embed(
description=f"**{message.author.mention}, Your Slot Has been
Revoked for Using Wrong Ping ({ping_type}).**",
color=0xFF7C2D)
await message.channel.send(embed=embed)
await message.channel.set_permissions(message.author,
send_messages=False)
await remove_slot_owner_role(message.author)
return
mention_count["overall"] = mention_count.get("overall", 0) + 1
mention_count[message.author.id] = mention_count.get(message.author.id, 0)
+ 1
embed = discord.Embed(
description=f'**{message.author.mention}, YOU USED**
__**{mention_count[message.author.id]}/{slot_configs["pings"][ping_type]}**__
**PINGS**. | __**USE MM TO BE SAFE!**__',
color=0xFF7C2D)
na = await message.channel.send(embed=embed)
await na.delete()
await message.channel.send(embed=embed)
await remove_slot_owner_role(message.author)
await bot.process_commands(message)
async def add_slot_owner_role(user):
role = discord.utils.get(user.guild.roles, id=SLOT_OWNER_ROLE_ID)
if role:
await user.add_roles(role)
@bot.command()
@commands.has_permissions(administrator=True)
async def slot(ctx, user: discord.Member, slot_name: str, ping_type: int,
ping_limit: int, duration: str = '1w', category_id: int = CATEGORY_3_ID):
global mention_count
if not category_obj:
await ctx.send("Invalid category ID. Please provide a valid category ID.")
return
purchase_date = datetime.utcnow()
expiry_date = purchase_date + timedelta(days=duration_days)
embed2 = discord.Embed(
title="CUREMARKET SLOT RULES",
description="""**
➥ No role ping.
➥ No Refund on private slot.
➥ You can't sell your slot.
➥ You can't share your slot.
➥ Any Kind of promotion is not allowed.
➥ No advertising Allowed - Only autobuy link !.
➥ If you disobey any of these rules, Slot will be revoked without refund.
embed3 = discord.Embed(
title="CUREMARKET Slot Details",
description=f"**Purchase Date:** {purchase_date.strftime('%d-%m')}\n"
f"**Duration:** **{duration_days} days | {duration_text}**\n"
f"**Expiry Date:** {expiry_date.strftime('%d-%m')}\n"
f"**Permissions:** {ping_info}",
color=discord.Color.green()
)
embed3.add_field(name="Rule 1",
value="**Must** follow the slot rules strictly.",
inline=False)
embed3.add_field(name="Rule 2",
value="**Must** Always accept MM.",
inline=False)
await channel.send(embed=embed3)
@bot.command()
@commands.has_permissions(administrator=True)
async def revoke(ctx, user: discord.User, channel: discord.TextChannel = None):
channel = channel or ctx.channel
embed = discord.Embed(
title="Slot Revoked",
description=f"The slot for {user.mention} has been revoked.",
color=discord.Color.red()
)
await ctx.send(embed=embed)
@bot.command()
@commands.has_permissions(administrator=True)
async def unrevoke(ctx, user: discord.User, channel: discord.TextChannel = None):
channel = channel or ctx.channel
embed = discord.Embed(
title="Slot Unrevoked",
description=f"The slot for {user.mention} has been unrevoked.",
color=discord.Color.green()
)
await ctx.send(embed=embed)
@bot.command()
@commands.has_permissions(administrator=True)
async def hold(ctx, user: discord.User, channel: discord.TextChannel = None):
channel = channel or ctx.channel
embed = discord.Embed(
title="Slot Held",
description=f"The slot for {user.mention} has been held.",
color=discord.Color.red()
)
await ctx.send(embed=embed)
@bot.command()
@commands.has_permissions(administrator=True)
async def unhold(ctx, user: discord.User, channel: discord.TextChannel = None):
channel = channel or ctx.channel
embed = discord.Embed(
title="Slot Unheld",
description=f"The slot for {user.mention} has been unheld.",
color=discord.Color.green()
)
await ctx.send(embed=embed)
bot.run('MTI1ODM5MzE4MjkyNDcwMTczNw.GqkDDB.rBRKXJPg4lAHW5n4JOiuaoXMS2AodtwSjujooo')