🌐
GitHub
github.com › BenjaminHinchliff › discord-python-interpreter-bot
GitHub - BenjaminHinchliff/discord-python-interpreter-bot: A Discord bot that can interpret python code. · GitHub
In my continuing quest to think of things that are terrible security loophole ridden ideas - I've made a bot that can interpret python code on Discord.
🌐
Real Python
realpython.com › how-to-make-a-discord-bot-python
How to Make a Discord Bot in Python – Real Python
October 14, 2022 - When you type !create-channel again, you’ll successfully create the channel real-python: Also, note that you can pass the optional channel_name argument to name the channel to whatever you want! With this last example, you combined a Command, an event, a Check, and even the get() utility to create a useful Discord bot!
Discussions

I made a discord bot that can execute python code and send the results to a discord chat
__import__("subprocess").run("malicious code") More on reddit.com
🌐 r/Python
7
2
May 9, 2020
I made a Python bot for Discord - based on discord.py

The repo has been updated to make use of the async branch from discord.py, and I've added a license + readme

More on reddit.com
🌐 r/discordapp
8
4
December 30, 2015
Run code from python snippets inside slack!

So i know this super old... but I am trying to get this slack bot to work properly and cannot for the life of me figure it out! I've tried several different ways of using the "response variable" but no matter what it either throws syntax error or just outputs None. Any one have any kind of sample i could see of this works????

More on reddit.com
🌐 r/Slack
11
3
October 18, 2016
Just starting python to use with a discord bot and am having trouble.
That command just installs the discord package, it doesn't create a script (as far as I know). What do you mean "nothing happens"? Like, does the terminal just wait until you kill it, or does it start and immediately exit, or do you mean your Discord bot does not respond to commands? Can you share your script? More on reddit.com
🌐 r/learnpython
14
1
August 4, 2023
🌐
GitHub
github.com › BenjaminHinchliff › discord-python-interpreter-bot › blob › master › README.md
discord-python-interpreter-bot/README.md at master · BenjaminHinchliff/discord-python-interpreter-bot · GitHub
In my continuing quest to think of things that are terrible security loophole ridden ideas - I've made a bot that can interpret python code on Discord.
Author: BenjaminHinchliff
🌐
TestDevLab
testdevlab.com › home › blog › how to build a discord bot using python (step-by-step guide)
How to Build a Discord Bot Using Python (Step-by-Step Guide)
December 30, 2024 - A Discord account and access to the Discord Developer Portal (https://www.discord.com/developers/applications). This is where we’ll create and manage our bot. Alright, let’s set up our project in PyCharm and get everything ready for coding. ... 3. Create a virtual environment. PyCharm will ask you if you’d like to set up a new virtual environment. In the Interpreter type choose “Project venv”, and make sure the Python version is set to your Python installation.
🌐
Replit
replit.com › home › discover › how to make a discord bot in python
How to make a Discord bot in Python | Replit
April 14, 2026 - A Cog is a Python class that groups related commands and event listeners together. By placing each Cog in a separate file, known as an extension, you can keep your main bot file clean and manageable.
🌐
PyPI
pypi.org › project › discord.py
discord.py · PyPI
import discord from discord.ext import commands intents = discord.Intents.default() intents.message_content = True bot = commands.Bot(command_prefix='>', intents=intents) @bot.command() async def ping(ctx): await ctx.send('pong') bot.run('token')
🌐
freeCodeCamp
freecodecamp.org › news › create-a-discord-bot-with-python
Python Discord Bot Tutorial – Code a Discord Bot And Host it for Free
December 15, 2020 - You can develop the bot on your local computer with any code editor. However, in this tutorial, we'll be using Repl.it because it will make it simpler for anyone to follow along. Repl.it is an online IDE that you can use in your web browser. Start by going to Repl.it. Create a new Repl and choose "Python" as the language. To use the discord.py library, just write import discord at the top of main.py.
🌐
GitHub
github.com › afk-echo › discord-py-interpreter
GitHub - afk-echo/discord-py-interpreter: The source for a Discord bot script that, while running, can take python code from within a Discord channel, execute it, and return the output back on the same channel. · GitHub
The source for a Discord bot script that, while running, can take python code from within a Discord channel, execute it, and return the output back on the same channel. - afk-echo/discord-py-interpreter
Author: afk-echo
Find elsewhere
🌐
GitHub
github.com › BenjaminHinchliff › discord-python-interpreter-bot › blob › master › main.py
discord-python-interpreter-bot/main.py at master · BenjaminHinchliff/discord-python-interpreter-bot · GitHub
A Discord bot that can interpret python code. Contribute to BenjaminHinchliff/discord-python-interpreter-bot development by creating an account on GitHub.
Author: BenjaminHinchliff
🌐
PyPI
pypi.org › project › hikari
hikari · PyPI
A sane Discord API for Python 3 built on asyncio and good intentions
🌐
Built In
builtin.com › software-engineering-perspectives › discord-bot-python
Build a Discord Bot With Python | Built In
Summary: A Discord bot in Python ... servers. Using the discord.py library, developers can create bots that respond to events like messages or server joins, enabling custom commands and features within Discord....
🌐
GitHub
github.com › Rapptz › discord.py
GitHub - Rapptz/discord.py: An API wrapper for Discord written in Python. · GitHub
import discord from discord.ext import commands intents = discord.Intents.default() intents.message_content = True bot = commands.Bot(command_prefix='>', intents=intents) @bot.command() async def ping(ctx): await ctx.send('pong') bot.run('token')
🌐
OpenWeaver
kandi.openweaver.com › python › BenjaminHinchliff › discord-python-interpreter-bot
discord-python-interpreter-bot | A Discord bot that can interpret python code | Bot library
You can download it from GitHub. In my continuing quest to think of things that are terrible security loophole ridden ideas - I've made a bot that can interpret python code on Discord.
🌐
Tech with Tim
techwithtim.net › tutorials › discord-py › setup
Discord Rewrite Tutorial - Creating a Discord Bot with Python
Next we need to select the script we want to run. We will need to navigate to the file and select it. Also ensure that your project interpreter is set to Project Default (Python 3.6). You can name the configuration anything you want. Now we have setup pycharm and are ready to create our discord bot!
🌐
IONOS
ionos.ca › digital guide › server › know-how › python discord bot
How to create a Python Discord bot - IONOS CA
October 20, 2023 - Your own Discord server can be a lot of work, which is why bots that take care of ad­min­is­tra­tive functions are popular. You can easily design your own bot using the Python library discord.py and applying basic Python knowledge.
🌐
GeeksforGeeks
geeksforgeeks.org › python › discord-bot-in-python
Creating a Discord Bot in Python - GeeksforGeeks
July 23, 2025 - dotenv: importing .env file into main python file. ... Using load_dotenv() function to import environment variables. Creating discord client to send a request to discord API and last we are getting and initializing our environment variable token. ... Here we are using on_ready() event provided by discord API once our API client has initialized this event will trigger performing the given operation. Here we are printing the name of our bot.
🌐
GitHub
github.com › appu1232 › Discord-Selfbot › blob › master › cogs › repl.py
Discord-Selfbot/cogs/repl.py at master · appu1232/Discord-Selfbot · GitHub
from discord.ext import commands · import collections · import inspect · import traceback · from contextlib import redirect_stdout · from cogs.utils.checks import hastebin · import io · · '''Module for an embeded python interpreter. More or less the same as the debugger module but with embeds.''' · · class EmbedShell(): def __init__(self, bot): self.bot = bot ·
Author: appu1232
🌐
Reddit
reddit.com › r/python › i made a discord bot that can execute python code and send the results to a discord chat
I made a discord bot that can execute python code and send the results to a discord chat : r/Python
May 9, 2020 - Thanks for the feedback, I will look into the OS-level features that you mentioned and will apply them to the second iteration of the bot.
🌐
freeCodeCamp
freecodecamp.org › news › how-to-build-a-basic-discord-bot-with-python
How to Build a Basic Discord Storytelling, Chat, and Mental Wellness Bot with Python
August 14, 2026 - In this tutorial, we'll start with a very small bot and gradually build it into something more capable. Along the way, you'll learn about Discord commands, events, asynchronous Python, user state, environment variables, and basic deployment.