Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dis-uniter

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dis-uniter

Keep your discord bot alive on replit

  • 1.4.0
  • PyPI
  • Socket score

Maintainers
1

This creates a simple website to go with your discord.py bot on https://replit.com so it can be kept alive.

Usage

Run in shell:

poetry add dis-uniter

Store your bot token in a secret called DISCORD_TOKEN. Secrets are accessed through the lock icon on the left on desktop, and commands tab at the bottom > secrets on mobile.

from discord.ext import commands
from disuniter import keepAlive
bot = commands.Bot()
# normal bot code here...
keepAlive(bot)

Wait, where's the bot.run?? The keepAlive function does that for you

  1. To enforce using a secret to store your token so you don't expose it (NEVER expose it even if you are to remove it instantly, because people can check your repl's history)
  2. To restart your bot automatically when there's a rate limit. Rate limits are caused by too many requests from the same IP that is shared across multiple repls, and are responsible for downtimes on replit-hosted bots.

Why this?

  • No dependencies, unlike the typical Flask keep-alive
  • No spammy output, unlike Flask and the keep-alive I usually recommended on the replit discord
  • Restart your repl when there's a rate limit
  • It shows stats about your bot. You can update bot/user info shown by hitting enter. See https://discord-maths-bot.umarismyname.repl.co/
  • It automatically adds your repl to https://up.repl.link, a pinger, if it isn't already there
  • It uses Solarized, which is objectively the best colour palette ever.

Why is it called dis-uniter?

I am keeping Discord bots alive. Discord = disagreement. I am dis-uniting by keeping disagreements alive.

FAQs


Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc