Skip to content

kaiyu-tech/stampon-bot

Repository files navigation

StamPon-Bot

StamPon-Botは、StamPon/すたんぽん へブックマークを登録するためのDiscord Botです。

Setup

  • initialization
git clone https://github.com/kaiyu-tech/stampon-bot
cd stampon-bot
yarn install
  • environment variable
touch .env
# Example of '.env'
TZ = Asia/Tokyo
LANG = ja-JP

DISCORD_CLIENT_ID = <YOUR_DISCORD_CLIENT_ID>
DISCORD_GUILD_ID = <YOUR_DISCORD_GUILD_ID>
DISCORD_ACCESS_TOKEN = <YOUR_DISCORD_ACCESS_TOKEN>

STAMPON_STAMPS = ["kininaru","👀"]
STAMPON_API_URI = http://127.0.0.1:3000/api/marks
STAMPON_API_TOKEN = <YOUR_STAMPON_API_TOKEN>
Environment variable name Description
DISCORD_CLIENT_ID OAuth2 Client ID
DISCORD_GUILD_ID Specifying where to use Stampon Bot
DISCORD_ACCESS_TOKEN Discord Bot Access Token
STAMPON_STAMPS Stamps that Stampon Bot responds to
STAMPON_API_URI URI of the Stampon API
STAMPON_API_TOKEN Token to access the Stampon API

Lint & Prettier

yarn run fix

Run

node --require dotenv/config index.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published