Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

dmarcoux-archives/discord-ping-pong-bot

Repository files navigation

Introduction

My first Discord bot with serenity. The code is from serenity's examples.

It responds to ping messages (on all channels) with pong. Nothing more, it's already quite impressive!

Setup Bot

  1. Create a bot (and its Discord token) in the Discord Developer Portal, then add the bot to a Discord server. Follow this guide for details.

  2. Run the bot with Docker:

docker pull danymarcoux/discord-ping-pong-bot:latest
docker run --detach --restart always --env DISCORD_TOKEN=YOUR_DISCORD_TOKEN danymarcoux/discord-ping-pong-bot:latest

Publish Docker Image to Docker Hub Registry

  1. Create an access token for Docker Hub

  2. Login to the Docker Hub registry with the access token (it will prompt...):

docker login --username danymarcoux
  1. Build Docker image and tag it:
docker build --tag danymarcoux/discord-ping-pong-bot:latest .
  1. Publish Docker image to Docker Hub registry:
docker push danymarcoux/discord-ping-pong-bot:latest

About

If you ping me, I'll pong you!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages