Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 .