Skip to content

Commit

Permalink
Merge pull request #3 from Ptero-Eggs/import-chatbots
Browse files Browse the repository at this point in the history
Import chatbots
  • Loading branch information
danny6167 authored Dec 11, 2024
2 parents 48c15b2 + f917e8a commit af14067
Show file tree
Hide file tree
Showing 43 changed files with 2,556 additions and 0 deletions.
69 changes: 69 additions & 0 deletions bots/discord/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Discord Bots

## Some of these bots support other services but are primarily Discord bots

### [Aoede](aoede)

[codetheweb/aoede](https://github.com/codetheweb/aoede)
🎧 a self-hosted Spotify → Discord music bot

### [ATLauncher Discord Bot](atlbot)

[ATLauncher/discord-bot](https://github.com/ATLauncher/discord-bot)
Their github has all the info you need

### [Bastion](bastion)

[TheBastionBot/Bastion](https://github.com/TheBastionBot/Bastion)
Give awesome perks to your Discord server!

### [Corpbot](corpbot)

[corpnewt/CorpBot.py](https://github.com/corpnewt/CorpBot.py)
A very clumsy python bot for discord

### [FragBot](fragbot)

[fragforce/fragbot](https://github.com/fragforce/fragbot)
The bot that runs as the fragforce `@Fragbot` offering looking-for-group services for now

### [Game Server Watcher](game-server-watcher)

[a-sync/game-server-watcher](https://github.com/a-sync/game-server-watcher)
A simple discord/telegram/slack bot that can be hosted on a free service to monitor your game servers and players in style. 😎

### [JMusicBot](jmusicbot)

[jagrosh/MusicBot](https://github.com/jagrosh/MusicBot)
A Discord music bot that's easy to set up and run yourself!

### [Muse](muse)

[codetheweb/muse](https://github.com/codetheweb/muse)
🎧 a self-hosted midwestern Discord music bot that doesn't suck

### [parkertron](parkertron)

[parkervcp/parkertron](https://github.com/parkervcp/parkertron)
The bot that runs as the pterodactyl `@Support Bot`

### [PixelBot](pixelbot)

[possatti/pixelbot](https://github.com/possatti/pixelbot)
No longer actively developed.
Was used to test python services.

### [RedBot](redbot)

[Cog-Creators/Red-DiscordBot](https://github.com/Cog-Creators/Red-DiscordBot)
A multifunction Discord bot

### [Ree6](ree6)

[Ree6-Applications](https://github.com/Ree6-Applications/Ree6)
All-in-one, open source and 100% free Discord Bot!

### [SinusBot](sinusbot)

[SinusBot](https://www.sinusbot.com/)
Please Check their site for an in depth on the bot.
28 changes: 28 additions & 0 deletions bots/discord/aoede/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Aoede

### Authors / Contributors
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center">
<a href="https://github.com/cleme29">
<img src="https://avatars.githubusercontent.com/u/8092733" width="50px;" alt=""/><br /><sub><b>cleme29</b></sub>
</a>
<br />
<a href="https://github.com/parkervcp/eggs/commits?author=cleme29" title="Codes">💻</a>
<a href="https://github.com/parkervcp/eggs/commits?author=cleme29" title="Maintains">🔨</a>
</td>
</tr>
</table>
<!-- markdownlint-enable -->
<!-- prettier-ignore-end -->
Special thanks to Red-Thirten for providing most of the installation script and to TubaApollo & QuintenQVD0 for the Muse egg that helped build most of this one !

## Their [Github](https://github.com/codetheweb/aoede)

Aoede is a Discord music bot that directly streams from Spotify to Discord. The only interface is Spotify itself.

## Server Ports

There are no ports required for the Aoede bot
92 changes: 92 additions & 0 deletions bots/discord/aoede/egg-aoede.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
"meta": {
"update_url": null,
"version": "PTDL_v2"
},
"exported_at": "2024-06-01T19:44:07+00:00",
"name": "Aoede",
"author": "[email protected]",
"description": "Aoede is a Discord music bot that directly streams from Spotify to Discord. The only interface is Spotify itself.",
"features": null,
"docker_images": {
"ghcr.io/ptero-eggs/yolks:ubuntu": "ghcr.io/ptero-eggs/yolks:ubuntu"
},
"file_denylist": [],
"startup": "./aoede",
"config": {
"files": "{}",
"logs": "{}",
"startup": "{\r\n \"done\": \"Invite me with\"\r\n}",
"stop": "^C"
},
"scripts": {
"installation": {
"container": "rust:1.74-slim",
"entrypoint": "bash",
"script": "## Credits: Red-Thirten (https://github.com/lilkingjr1) for providing most of the installation script\r\n## Credits to TubaApollo \u0026 QuintenQVD0 for the Muse egg that helped build most of this one\r\napt-get update\r\napt-get install git curl jq cmake -y -qq\r\n\r\nGITHUB_PACKAGE=\"codetheweb/aoede\"\r\n\r\n# Find GitHub download URL for Muse for specified version\r\nLATEST_JSON=$(curl --silent \"https://api.github.com/repos/${GITHUB_PACKAGE}/releases/latest\")\r\nRELEASES=$(curl --silent \"https://api.github.com/repos/${GITHUB_PACKAGE}/releases\")\r\n\r\nif [ -z \"${VERSION}\" ] || [ \"${VERSION}\" == \"latest\" ]; then\r\n DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq -r '.tarball_url')\r\nelse\r\n VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .tag_name')\r\n if [ \"${VERSION}\" == \"${VERSION_CHECK}\" ]; then\r\n DOWNLOAD_URL=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .tarball_url')\r\n else\r\n echo -e \"Could not find version \\\"${VERSION}\\\" of Muse. Defaulting to latest release...\"\r\n DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq -r '.tarball_url')\r\n fi\r\nfi\r\n\r\n# Download Aoede from GitHub \u0026 Extract\r\ncd /mnt/server\r\necho -e \"Downloading Aoede from GitHub...\"\r\ncurl -L ${DOWNLOAD_URL} -o aoede.tar.gz\r\necho -e \"Extracting Aoede from tarball...\"\r\ntar -xvzf aoede.tar.gz --strip-components=1\r\nrm aoede.tar.gz\r\n\r\n# Verify and clean up Aoede installation\r\nif [ ! -f Cargo.toml ]; then\r\n echo -e \"\\nFailed to download release: ${DOWNLOAD_URL}\\n\"\r\n exit 1\r\nfi\r\nrm -rf .dockerignore Dockerfile .gitignore .github/\r\ncargo build --release\r\nmv target/release/aoede .\r\ncargo clean\r\n\r\n\r\necho -e \"\\nAoede Successfully Installed!\""
}
},
"variables": [
{
"name": "Token",
"description": "Discord Bot Token",
"env_variable": "DISCORD_TOKEN",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "required|string",
"field_type": "text"
},
{
"name": "Username",
"description": "Spotify Username",
"env_variable": "SPOTIFY_USERNAME",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "required|string",
"field_type": "text"
},
{
"name": "Password",
"description": "Spotify Password",
"env_variable": "SPOTIFY_PASSWORD",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "required|string",
"field_type": "text"
},
{
"name": "Discord User ID",
"description": "Discord user ID of the user you want Aoede to follow",
"env_variable": "DISCORD_USER_ID",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "required|string",
"field_type": "text"
},
{
"name": "Autoplay",
"description": "Autoplay similar songs when your music ends \r\nValue : true/false",
"env_variable": "SPOTIFY_BOT_AUTOPLAY",
"default_value": "false",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:true,false",
"field_type": "text"
},
{
"name": "Version",
"description": "Specify a version, for example: \"v0.7.0\"\r\nFor the latest version, type \"latest\"",
"env_variable": "VERSION",
"default_value": "latest",
"user_viewable": true,
"user_editable": true,
"rules": "required|string",
"field_type": "text"
}
]
}
9 changes: 9 additions & 0 deletions bots/discord/atlbot/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ATLBot

## Their [Github](https://github.com/ATLauncher/discord-bot)

This is the code for our Discord bot which runs on the official ATLauncher Discord server

## Server Ports

There are no ports required for the atl bot
52 changes: 52 additions & 0 deletions bots/discord/atlbot/egg-a-t-l-bot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
"meta": {
"update_url": null,
"version": "PTDL_v2"
},
"exported_at": "2024-06-01T19:44:10+00:00",
"name": "ATLBot",
"author": "[email protected]",
"description": "ATLbot in ptero\r\n\r\nhttps://github.com/ATLauncher/discord-bot/",
"features": null,
"docker_images": {
"Nodejs 16": "ghcr.io/ptero-eggs/yolks:node_16"
},
"file_denylist": [],
"startup": "npm run start",
"config": {
"files": "{\r\n \"config/local.json\": {\r\n \"parser\": \"json\",\r\n \"find\": {\r\n \"discord.client_token\": \"{{server.build.env.CLIENT_TOKEN}}\",\r\n \"logging.level\": \"debug\"\r\n }\r\n }\r\n}",
"logs": "{}",
"startup": "{\r\n \"done\": \"Bot started\"\r\n}",
"stop": "^C"
},
"scripts": {
"installation": {
"container": "node:16-bookworm",
"entrypoint": "bash",
"script": "#!/bin/bash\r\n\r\napt update\r\napt -y install git openssl\r\n\r\ncd /mnt/server\r\nif [[ -d .git/ ]]; then\r\n git pull\r\nelse\r\n git clone https://github.com/ATLauncher/discord-bot.git . \r\nfi\r\n\r\necho '{}' \u003e config/local.json\r\n\r\nnpm install --production\r\n\r\nnpm run build\r\n\r\nrm Dockerfile\r\nrm CONTRIBUTING.md\r\nrm README.md\r\nrm /config/.gitignore\r\nrm CODE_OF_CONDUCT.md\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\""
}
},
"variables": [
{
"name": "client_token",
"description": "Get a discord token at https://discordapp.com/developers/",
"env_variable": "CLIENT_TOKEN",
"default_value": "get_your_own_token_from_discord_",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:75",
"field_type": "text"
},
{
"name": "Node Environment",
"description": "The node environment variable.\r\n\r\nNeeds to stay at \"development\" to log to console.",
"env_variable": "NODE_ENV",
"default_value": "development",
"user_viewable": true,
"user_editable": false,
"rules": "required|string|max:20",
"field_type": "text"
}
]
}
26 changes: 26 additions & 0 deletions bots/discord/bastion/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Bastion

## From their [Github](https://github.com/TheBastionBot/Bastion)

Bastion is a multi-purpose Discord Bot that can help you automate most tasks in your server, from administration and moderation to keeping the members active through various incentives, games and other fun activities.


## Running the bot

You need to enable both `Privileged Gateway Intents` for the bot to run.

Invite link: `https://discord.com/oauth2/authorize?client_id=INSERT_APP_ID_HERE&scope=bot&permissions=8`

## Server Ports


| Port | default |
|-----------------------|---------|
| Bastion API Port | 8377 |

## Mongodb

Mongodb is automaticly running in the background. Leave Mongo URL to the default to use it. If you want to use a external mongodb server a connection string should look like: `mongodb+srv://<username>:<password>@<ip>/?retryWrites=true&w=majority`

## Startup cmd
By default this should be `npm start` but if you want to register your slash commands set it to `npm run commands` it will activate the slash commands on discord's side. Then the server will crash, change it back to `npm run` to start the bot back up and have slash commands enabled.
Loading

0 comments on commit af14067

Please sign in to comment.