Need help enabling user bot commands

Hey everyone!, I have created my first discord bot using python and the bot does show it connects in the code and on discord. However, I am lost to make the
!set_active_days
!set_active_days
and
!set_extended_abscence
!set_extended_abscence
days command to work. I have included my code for its (seen below)
@bot.command(name='set_activity_days')
@commands.has_permissions(administrator=True)
async def set_activity_days(ctx, inactive_days_1: int, inactive_days_2: int):
member = ctx.guild.get_member(ctx.guild.owner_id)
member.activity_days_1 = inactive_days_1
member.activity_days_2 = inactive_days_2
await ctx.send(f"Activity days set successfully! Warning will be sent after {inactive_days_1} days of inactivity, and kick after {inactive_days_2} days of inactivity.")

@bot.command(name='set_extended_absence')
@commands.has_permissions(administrator=True)
async def set_extended_absence(ctx, member: discord.Member, extended_absence: bool):
member.activity_extended_absence = extended_absence
if extended_absence:
await ctx.send(
f"Extended absence status for {member.display_name} has been set to TRUE. The user will NOT receive kick warnings for inactivity."
@bot.command(name='set_activity_days')
@commands.has_permissions(administrator=True)
async def set_activity_days(ctx, inactive_days_1: int, inactive_days_2: int):
member = ctx.guild.get_member(ctx.guild.owner_id)
member.activity_days_1 = inactive_days_1
member.activity_days_2 = inactive_days_2
await ctx.send(f"Activity days set successfully! Warning will be sent after {inactive_days_1} days of inactivity, and kick after {inactive_days_2} days of inactivity.")

@bot.command(name='set_extended_absence')
@commands.has_permissions(administrator=True)
async def set_extended_absence(ctx, member: discord.Member, extended_absence: bool):
member.activity_extended_absence = extended_absence
if extended_absence:
await ctx.send(
f"Extended absence status for {member.display_name} has been set to TRUE. The user will NOT receive kick warnings for inactivity."
according to this the command name is set_activity_days and set_extended_absence earlier in the code I set
"!"
"!"
as the prefix. However when I attempt to set the days to test the bot i get nothing: Am I missing something I was told to get rid of
@commands.has_permissions(administrator=True)
@commands.has_permissions(administrator=True)
and i tried that but still nothing
No description
W
Wagon308d ago
Can you send the bot file, please make sure you do not have a bot token within this file or any other sensitive information.
A
abiddon308d ago
Yeah I will do i send the bot file to you or put it in the discord
W
Wagon307d ago
What intents do you have selected within the discord developer portal for your application
A
abiddon307d ago
I selected all of them
A
abiddon307d ago
No description
A
abiddon307d ago
and the intent code is as follows:
intents = discord.Intents.default()
intents.members = True
bot = commands.Bot(command_prefix='!', intents=intents)
intents = discord.Intents.default()
intents.members = True
bot = commands.Bot(command_prefix='!', intents=intents)
W
Wagon307d ago
I talked to some other guys, and I was unable to identify the issue. I would recommend checking out the official Discord.py server for more help; we primarily are focused on cybersecurity and cybersecurity education on this server. I am sorry I couldn't be more help. https://discord.gg/dpy
A
abiddon306d ago
Okay seems that I have solved this issue Thank you @wagon_
W
Wagon306d ago
No problem, sorry I couldn't do more. glad you got it figured out
A
abiddon306d ago
yeah lol now im gonna have to figure out how to let the bot see past nicknames cause I noticed it will not use nicknames of members but its been an excellent learning expirience
More Posts
Windows 10 recovery media@everyone srry for ping but may someone help me, I have 3f0 boot error, and I got no other laptops, Problem with multi-handler on Evil-Droidhello, when i launch my listening, my terminal goes black i didn't see what i'm righting or the resuWindows updateIt doesn’t update anything help me pleasehelp :)Hello im new to kali linux… and wlan0 does not work, i tried that compat think but it doesen t work What do I need to do to land a job in an SOC as a relative beginner?I want to work in an SOC. Until recently, I was a physical "SOC Analyst" for a Fortune 50 company. MSetup wireguard on local pc and mac laptop (acces from wan remote desktop)Hi all. I need to setup fast and save connection to access my windows pc (remote desktop) from my mahow to turn off real time protection in the new windows update where it doesn’t shows manage settingIt is showing open apps but not manage setting so idk how and where to accesssi have a sonicwall nsa 3500 (I have no clue what im doing)i just need to know how to setup the last four ports to use as a normal lan, `the x0 port is hookedLaptop As PhoneHey everyone, I'm currently trying to find a solution to a specific issue. I have a laptop with thathacked?How I can identify if my phone getting hacked or not?credentials in plain text in burpsuiteI got to know credentials seen in plain text while using Burpsuite configured to a browser is not a HELP ME WITH MY BUSINESSI live in village and sell milk and cheese in city and I want to scale up my business now I'm makingA way to have a device connected to someone's network pass its data to my pcSo long story short uncle owns a car garage and recently something called "Remote car diagnostic" waProgramming Language first or learning hardware CYBERSECURITYYo yall, so I want to go into cybersecurity, and I found this map that tells me where to go. https:/dga3134looking for help port forwarding my dayz server please, iveopened all the ports in and outbound on minstagram being hackedapparantly one of my friend have hacked my insta account and took screenshots of my messages with myip in webHow can I enter multiple IPs with one system to simulate multiple viewers on the site?Port forwardingSo I have a netgear nighthawk rax43 and i have port 25565,80,443,2022,19132,22 All open and they areOld ROBLOX Account from age 13. Lost password and there's no connected email.Link:https://www.roblox.com/users/1676810577/profile. I made it to roleplay with my aunt and some frhi i want helphi i want help my pc get hacked i buy new usb device and after i put it i get message its need to r