Skip to content

pixel-bot

A Discord bot written in Python using discord.py https://github.com/Ispira/pixel-bot

egg-pixel-bot.json

updated

Install

Installer image
python:3.7-alpine
Install script
19 lines

Image

  • Python 3.7 ghcr.io/ptero-eggs/yolks:python_3.7

Startup

The Panel runs this command to start the server. It replaces each variable in the command with the value of that variable.

5 variables

Startup command

/usr/local/bin/python bot.py
  • The Discord UID of the bot owner.

    OWNER_UIDUsers can edit

    required|string|max:32

  • Get the app token from https://discordapp.com/developers/applications/me

    BOT_TOKENUsers can edit

    required|string|max:128

  • The name that you want set for the bot

    BOT_NAMEUsers can edit

    required|string|max:20

  • Add your Imgur API client_id if you want. https://api.imgur.com/oauth2/addclient

    IMGUR_KEYUsers can edit

    nullable|string|max:64

  • Add your Imgur API client_secret if you want. https://api.imgur.com/oauth2/addclient

    IMGUR_SECRETUsers can edit

    nullable|string|max:20

Wings

Stop command
^C (SIGINT)
Running when the console shows
Logged in as

Files Wings edits

Wings sets these values in these files before each start.

config/config.json json

owner
{{server.build.env.OWNER_UID}}
token
{{server.build.env.BOT_TOKEN}}
bot_name
{{server.build.env.BOT_NAME}}
log_file
latest.log

plugins/settings/imgur.json json

client_id
{{server.build.env.IMGUR_KEY}}
client_secret
{{server.build.env.IMGUR_SECRET}}

Readme

pixelbot

Their Github

Bot for pixelcanvas.io

Server Ports

There are no ports required for pixelbot

Side notes

This was to make sure the parkervcp/images:python 3 image worked.

Changes

  1. Import chatbots

    · Daniel Barton · f917e8a

All changes on GitHub

Problem with this egg?

Open an issue on GitHub. Include your Panel and Wings versions.

Install script 19 lines ash in python:3.7-alpine Show
#!/bin/ash
# Pixel Bot Installation Script
#
# Server Files: /mnt/server
apk add --no-cache git gcc g++ libffi-dev make

cd /mnt/server

echo "Cloning pixel-bot repo"
git clone https://github.com/Ispira/pixel-bot.git .

echo "Installing python requirements into folder"
pip install -U --target $(pwd) discord imgurpython xkcd pynacl


## install end
echo "-----------------------------------------"
echo "Installation completed..."
echo "-----------------------------------------"