norio-nomura / SwiftCompilerDiscordappBot

Swift Compiler Discordapp Bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swift Compiler Discordapp Bot

Written in Swift.
Inspired by swift-compiler-discord-bot.

How to use

Set Up Bot Account

Creating a discord bot & getting a token

Required Permissions

  • CHANGE_NICKNAME for update nickname
  • READ_MESSAGE_HISTORY and VIEW_CHANNEL for update replies on updating request from user

Test on local host

export DISCORD_TOKEN="<discord token here>" # set discord token
export DOCKER_IMAGE=norionomura/swift:5.0 # select docker image
docker-compose up

Deploy to Heroku

Deploy

git clone https://github.com/norio-nomura/SwiftCompilerDiscordappBot.git
cd SwiftCompilerDiscordappBot
heroku container:login
heroku create
heroku config:set DISCORD_TOKEN="<discord token here>"
heroku container:push worker --arg DOCKER_IMAGE=norionomura/swift:5.0

Configure Dyno on your Heroku Dashboard

Author

Norio Nomura

License

Swift Compiler Discordapp Bot is available under the MIT license. See the LICENSE file for more info.

About

Swift Compiler Discordapp Bot

License:MIT License


Languages

Language:Swift 94.0%Language:Dockerfile 6.0%