o0shojo0o / PixelIt.discord-bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

discordBot

I created the discordBot as a practice project to learn NosdeJs. So here are some not so perfect code examples!

Installation

Use docker-compose

pixel_discord_bot:
  image: ghcr.io/o0shojo0o/docker-pixelit-discord-bot:latest
  container_name: pixel-discord-bot 
  volumes:
    - /etc/localtime:/etc/localtime:ro
    - ./pixel_discord_bot/database:/usr/src/app/database/:rw
    - ./pixel_discord_bot/.env:/usr/src/app/.env:ro
  restart: always

Usage

Create an .env file in the root directory with the contents:

BOT_TOKEN=<DiscordBotToken>
PIXELIT_API_TOKEN=<PIXELITToken>
PIXELIT_CHANNGELOG_INTERVAL=<Interval (sec.)>
PIXELIT_NEW_IMAGE_INTERVAL=<Interval (sec.)>
NEWS_CHANNEL=<ChannelID>

License

MIT License

Copyright (c) 2021 Dennis Rathjen info@bastelbunker.de

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

License:MIT License


Languages

Language:JavaScript 97.4%Language:Dockerfile 2.6%