Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dsnsgithub/deploybot
A deployment solution for dsns.dev using discord.js. This bot will execute a Python script when run with /deploy, then display the output in Discord.
https://github.com/dsnsgithub/deploybot
Last synced: 15 days ago
JSON representation
A deployment solution for dsns.dev using discord.js. This bot will execute a Python script when run with /deploy, then display the output in Discord.
- Host: GitHub
- URL: https://github.com/dsnsgithub/deploybot
- Owner: dsnsgithub
- Created: 2023-07-05T05:29:44.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-07-10T08:40:52.000Z (over 1 year ago)
- Last Synced: 2024-11-09T21:07:58.510Z (2 months ago)
- Language: TypeScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DeployBot
A deployment solution for dsns.dev using discord.js.
This bot will execute a Python script when run with /deploy, then display the output in Discord.
## How To Install
### 1. Clone the Github Repository:
git clone https://github.com/dsnsgithub/deploybot
### 2. Enter the repository and install dependencies:
cd deploybot
npm install### 3. Create a `.env` file and add these properties:
GUILD_ID = [id from guild where you want to send chat messages]
DISCORD_BOT_TOKEN = [create a discord bot in the developer portal and add the token here]
CLIENT_ID = [discord bot client id, found in discord developer portal]
SCRIPT_PATH = [complete path to your python script]### 4. Register Discord Slash Commands:
ts-node -T deploy-commands.ts
### 5. Run the Discord Bot:
ts-node -T .