This is a simple self-bot script written in Python using the Discord.py-self dev environment library. The self-bot monitors messages in a specified server and channel and reacts to messages that contain a specific keyword.
- Listens to messages in a Discord server and channel.
- Reacts to messages containing a specified keyword with a custom emoji.
- Python 3.x installed on your machine.
- Discord.py-self library installed use
pip install git+https://github.com/dolfies/discord.py-self.git@master
- Your discord account token
-
Clone or download the script to your local machine.
-
Create a
.env
file in the same directory as the script with the following content:TOKEN= your_discord_token SERVER= your_server_id CHANNEL= your_channel_id TARGET= 'your_target_keyword' EMOJI= 'your_reaction_emoji'
Replace
your_discord_token
,your_server_id
,your_channel_id
,your_target_keyword
, andyour_reaction_emoji
with your actual Discord account token, server ID, channel ID, target keyword, and reaction emoji, respectively. -
Install the required Python libraries:
pip install python-dotenv
-
Run the script:
python3 react.py
- The self-bot will print a message to the console when it successfully logs in.
- It will listen to messages in the specified server and channel.
- When a message contains the specified keyword, the self-bot will print a message to the console and react to the message with the specified emoji.
- Ensure that your self-bot has the necessary permissions in the server and channel where it operates.
- Be cautious when sharing your Discord account token and other sensitive information.
- If the self-bot is not reacting as expected, check the console for any error messages.
- Verify that the self-bot has the required permissions and is added to the correct server and channel.