Socket
Socket
Sign inDemoInstall

discord-repl

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    discord-repl

Discord REPL


Maintainers
1

Readme

Discord REPL

A discord bot to run code in containers.


Development

Requirements

  • python 3.10
  • docker

Install pipenv

python -m pip install --user pipenv

Prepare the environment

pipenv install --dev

Run the tests

pipenv run test

Running the bot

First of all you will need to create a application/bot on discord. Here are some usefully links:

  • https://discord.com/developers/docs/intro
  • https://discord.com/developers/applications

Get your bot token and add it to .env or as variable when running the bot.


Using .env.

Add to the .env

echo "DISCORD_TOKEN=... >> .env

Run the bot

pipenv run bot

Take care of your token, don't commit it.


Using as variable

DISCORD_TOKEN=... pipenv run bot

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc