A Discord bot I originally made to log my pinned notes & shopping lists (for personal use). You can use this bot to handle server pins.
This project is open to suggestions and improvements; feel free to open an issue or make a pull request!
Trashpin responds to pinned messages and various slash commands...
If enabled, pinned messages are logged/archived properly if they were sent after the bot's most recent startup.
/enable [channel]
Enables pin archiving for the specified channel.
/disable
If pin archiving is enabled, this command disables it.
/ping
Returns the bot's latency.
/help
Returns a guide on how to use the bot.
You can either invite the bot or run it locally...
First, fork (or not) and download the repository to your computer!
Then, rename example.env to .env and personalize its settings.
If you prefer to test trashpin on an alternate Discord bot token (to debug, for example), you can add an
alternate.envfile to thedebugfolder. Make sure to configure it with the same keys as listed inexample.env!
Next, install the module requirements:
pip install -r requirements.txtMake sure the trashpin folder is the directory of the following commands...
Then, run main.py..
python main.pyor run the script but hide the terminal:
pythonw main.pyHowever you run the Python file does not matter. At the moment, I host the bot by running the script from Visual Studio Code on a Raspberry Pi I have under my piano.. lol.
Alternatively, you can run trashpin.bat if your computer allows. This will run the script without showing the terminal, but you'll still have to download the Python requirements.
As a possible use for this file, you can set the
trashpin.batfile to run on startup.
Feel free to discuss questions in this repository's Q&A section or my personal Discord server for all projects philosolog!