학교 공지가 올라오면 자동으로 이를 알려주는 디스코드 봇
- go 1.21.8
- discordgo 0.28.1
- goquery 1.9.1
config.default.json의 이름을 config.json으로 변경해 사용하면 된다.
token: 디스코드 봇 토큰 string
isTesting: 이 봇이 테스트 모드인지 여부 bool
testingGuilds: 테스트 모드이면 커맨드를 생성할 서버들 목록 string[P]
sendMessageChannels: 메세지를 보낼 디스코드 채널들 string[]
lastNotice: 마지막 공지 번호들 int
go mod download
go run .
여기를 참조하세요