All Questions
99
questions
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.
...
-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 ...
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 ...
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/...
-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('')
@...
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 ...
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 (...
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 ...
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 ...
-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 ...
-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 ...
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 ...
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):
...
-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("!!&...
-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 ...