From 959df932522637aa4b7358d6726da221c57e2220 Mon Sep 17 00:00:00 2001 From: "Michael (Parker) Parker" Date: Tue, 27 Mar 2018 09:14:00 -0400 Subject: [PATCH] Adding pixel-bot --- README.md | 6 +- discordbots/pixel-bot/egg-pixel-bot.json | 72 ++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 discordbots/pixel-bot/egg-pixel-bot.json diff --git a/README.md b/README.md index 75ec01cd..f81512fd 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ The [Squad](https://joinsquad.com/) official dedicated server ### Xonotic #### xonotic The [xonotic](http://www.xonotic.org/) official dedicated server. -- Disk space needs to be +- Disk space needs to be at least 1 gig for the full package. ## Bot Eggs ### Discord @@ -79,3 +79,7 @@ The [ATLauncher Bot](https://github.com/ATLauncher/discord-bot/) #### parkertron My own stupid chat bot [parkertron](https://github.com/parkervcp/parkertron) - Currently runs as the SupportBot in the pterodactyl discord server. + +#### pixel-bot +[pixel-bot](https://github.com/Ispira/pixel-bot) + - More of a reason/way to test a python container. \ No newline at end of file diff --git a/discordbots/pixel-bot/egg-pixel-bot.json b/discordbots/pixel-bot/egg-pixel-bot.json new file mode 100644 index 00000000..e9646353 --- /dev/null +++ b/discordbots/pixel-bot/egg-pixel-bot.json @@ -0,0 +1,72 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v1" + }, + "exported_at": "2018-03-27T08:57:41-04:00", + "name": "pixel-bot", + "author": "parker@parkervcp.com", + "description": "A Discord bot written in Python using discord.py\r\n\r\nhttps:\/\/github.com\/Ispira\/pixel-bot", + "image": "quay.io\/parkervcp\/pterodactyl-images:python3", + "startup": "python bot.py", + "config": { + "files": "{\r\n \"config\/config.json\": {\r\n \"parser\": \"json\",\r\n \"find\": {\r\n \"owner\": \"{{server.build.env.OWNER_UID}}\",\r\n \"token\": \"{{server.build.env.BOT_TOKEN}}\",\r\n \"bot_name\": \"{{server.build.env.BOT_NAME}}\",\r\n \"log_file\": \"latest.log\"\r\n }\r\n },\r\n \"plugins\/settings\/imgur.json\": {\r\n \"parser\": \"json\",\r\n \"find\": {\r\n \"client_id\": \"{{server.build.env.IMGUR_KEY}}\",\r\n \"client_secret\": \"{{server.build.env.IMGUR_SECRET}}\"\r\n }\r\n }\r\n}", + "startup": "{\r\n \"done\": \"Logged in as\",\r\n \"userInteraction\": []\r\n}", + "logs": "{\r\n \"custom\": false,\r\n \"location\": \"logs\/latest.log\"\r\n}", + "stop": "^C" + }, + "scripts": { + "installation": { + "script": "#!\/bin\/ash\r\n# Factorio Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napk add --no-cache git gcc g++ libffi-dev make\r\n\r\ncd \/mnt\/server\r\n\r\necho \"Cloning pixel-bot repo\"\r\ngit clone https:\/\/github.com\/Ispira\/pixel-bot.git .\r\n\r\necho \"Installing python requirements into folder\"\r\npip install -U --target $(pwd) discord imgurpython xkcd pynacl", + "container": "python:3.6-alpine3.7", + "entrypoint": "ash" + } + }, + "variables": [ + { + "name": "Owner Discord UID", + "description": "The Discord UID of the bot owner.", + "env_variable": "OWNER_UID", + "default_value": "copy from discord", + "user_viewable": 1, + "user_editable": 1, + "rules": "required|string|max:32" + }, + { + "name": "Discord Bot Token", + "description": "Get the app token from https:\/\/discordapp.com\/developers\/applications\/me", + "env_variable": "BOT_TOKEN", + "default_value": "get from discord developers", + "user_viewable": 1, + "user_editable": 1, + "rules": "required|string|max:64" + }, + { + "name": "Bot Name", + "description": "The name that you want set for the bot", + "env_variable": "BOT_NAME", + "default_value": "Ispyra", + "user_viewable": 1, + "user_editable": 1, + "rules": "required|string|max:20" + }, + { + "name": "Imgur API ID", + "description": "Add your Imgur API client_id if you want. \r\n\r\nhttps:\/\/api.imgur.com\/oauth2\/addclient", + "env_variable": "IMGUR_KEY", + "default_value": "", + "user_viewable": 1, + "user_editable": 1, + "rules": "nullable|string|max:64" + }, + { + "name": "Imgur Secret", + "description": "Add your Imgur API client_secret if you want. \r\n\r\nhttps:\/\/api.imgur.com\/oauth2\/addclient", + "env_variable": "IMGUR_SECRET", + "default_value": "", + "user_viewable": 1, + "user_editable": 1, + "rules": "nullable|string|max:20" + } + ] +} \ No newline at end of file