Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

kotarou1192/n-leave-ban

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

this program was written for Linux/MacOS. This program does not work on Windows.

if you want to run thsi program on windows, edit / to \ of path.

n-leave-ban that is discord bot bans a user when the user leaves a server n times.

rename .env.example to .env and edit it.

ENV=production  
TOKEN=aaaaaaaaaaaaaaaaa.aaaaa
LEAVE_MAX_COUNT=3
CLIENT_ID=11922960

this is a sample.
ENV should be set to production or development or test.
TOKEN is a area of to imput your discord bot token
LEAVE_MAX_COUNT means when a user leaves a server N times, ban the user.
CLIENT_ID should be set your discord bot's client id. but this is not used, so you don't know your bot's client id, then you can imput random string.

used libs

  • github.com/joho/godotenv
  • github.com/jinzhu/gorm
  • github.com/mattn/go-sqlite3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published