Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
1 vote
1 answer
58 views

How do I make my discord bot recognise bad words even if they have spaces or non-letter characters in between?

This is my code for my discord bot. I wanted to make the bot also to delete messages that contain bad words that have characters (. , * / _ - and space character) in between each letter of the words. ...
John Hawking's user avatar
-2 votes
1 answer
53 views

Trouble with Discord.py

I've been trying to make a Discord bot that will listen for a $start command from a guild and then starts an Exaroton Minecraft server using their API. I've been using some templates to get it to only ...
Gregory Scales's user avatar
0 votes
0 answers
16 views

Writing a Discord bot in Python hosted on Replit, getting an session error when I try to parse a command as a sentence

I'm writing a discord bot in python hosted on replit. Everything works fine as long as I parse commands as individual arguments. When I try to parse a command as a sentence, when I run my bot I get ...
Dan Tahir's user avatar
0 votes
1 answer
141 views

replit fails to install/use discord.opus

Grettings. i've had a discord music bot since 2 years ago and it was working perfectly fine back then.but now when i try to play something i get the error below: File "/home/runner/Goorbebot/...
amirdadfar9193's user avatar
-1 votes
1 answer
394 views

How can I host a Discord bot with Replit?

I'm using Replit to create a Discord bot in Python. At first, I used the keep_alive method (Flask + UptimeRobot): import flask from flask import Flask from threading import Thread app = Flask('') @...
Neskariss's user avatar
0 votes
1 answer
50 views

Why I can not send discord message using python-requests on Replit?

I can not send discord message using python-requests on Replit anymore and i dont know what happened. I remember the last time it still worked on Replit is 03/10/2023. What should I do? Here is my ...
Diablo's user avatar
  • 3
0 votes
1 answer
188 views

I am getting an error for importing replit

--> poetry add replit Using version ^3.3.2 for replit Updating dependencies Resolving dependencies... Because no versions of replit match >3.3.2,<4.0.0 and replit (3.3.2) depends on Flask (...
Coder Divyanshu's user avatar
0 votes
0 answers
49 views

How to add a template to a discord bot repl

I have a template for making a Talking Discord Bot Through ChatGPT on OpenAI, And I have the basic template it gives you when you select "Discord Bot Python" when creating a replit. And I ...
Livnupbtw's user avatar
0 votes
2 answers
329 views

how to properly install a python module , i'm having issues in it

I want to set up PyNaCl for a discord bot project , but I'm having trouble installing it. when i simply use $ pip install pynacl it does say the module pynacl is installed successfully, but when i ...
Parsa Ad's user avatar
-2 votes
1 answer
55 views

discord.py simplify code with function doesn´t work

I´m programming a discord bot, that allows admins to change the server nicknames of the other members. If the bot doesn´t have the permission to change the name (e.g. the onces from admins) it dms it ...
brickastley's user avatar
-5 votes
1 answer
430 views

How do you make a bot add a custom emoji reaction to its own message?

As far as I know, get_all_emojis has been deprecated and I've been struggling to find a replacement. How do I make a bot add reactions to its own messages with a custom emoji? What I'm really ...
Yozy Opto's user avatar
2 votes
1 answer
62 views

Discord bot not responding when being called

your text Okay, so I am having this problem while creating a discord bot for the Truth and Dare game... The bot goes online, and it has permission to be an admin, to read and send messages but it ...
Haneen Alobaidi's user avatar
1 vote
1 answer
85 views

"TypeError: 'str' object is not callable" Discord Bot with Python on repl.it

I wanted to create a Discord bot to send a text message on a Discord server containing all the commands when someone types "^help" but I get this error: Traceback (most recent call last): ...
Filippvas's user avatar
-1 votes
1 answer
3k views

How do you make a Discord bot reply to a certain message?

Code: async def on_message(message): if client.user.mentioned_in(message) and client.user in message.mentions: if message.author.bot: return if message.content.startswith("!!&...
Yozy Opto's user avatar
-1 votes
1 answer
348 views

Discord bot going offline despite being pinged

I created discord bot and decided to host it on Replit. I used uptimerobot to ping site every 5 mins so it does not stop after hour as it is said in replit docs. It worked for 2 weeks, i was adding ...
AimBought's user avatar

15 30 50 per page
1
2 3 4 5
7