mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
[hotfix] readme and some url changed.
This commit is contained in:
parent
593b98b7fb
commit
864ba3748d
41
README.md
41
README.md
@ -1,6 +1,6 @@
|
|||||||
# nabot_chzzk_bot
|
# chibot_chzzk_bot
|
||||||
|
|
||||||
[](https://discord.gg/up8ANZegmy) [](https://teamcity.mori.space/project/NabotChzzkBot) [](https://hub.docker.com/repository/docker/dalbodeule/chzzkbot/general)
|
[](https://discord.gg/up8ANZegmy) [](https://teamcity.mori.space/project/NabotChzzkBot)
|
||||||
|
|
||||||
## Chzzk Chatbot with [JDA5](https://github.com/discord-jda/JDA), [chzzk4j](https://github.com/R2turnTrue/chzzk4j)
|
## Chzzk Chatbot with [JDA5](https://github.com/discord-jda/JDA), [chzzk4j](https://github.com/R2turnTrue/chzzk4j)
|
||||||
|
|
||||||
@ -17,17 +17,6 @@
|
|||||||
- [x] \<daily_counter:counter_name>
|
- [x] \<daily_counter:counter_name>
|
||||||
- [x] \<days:yyyy-mm-dd>
|
- [x] \<days:yyyy-mm-dd>
|
||||||
|
|
||||||
### 관리 명령어 (on Discord)
|
|
||||||
- [x] /hook token: \[디스코드 연동 페이지에서 받은 Token]
|
|
||||||
- [x] /alert channel: \[디스코드 Channel ID] content: \[알림 내용]
|
|
||||||
- [x] /add label: \[명령어] content: \[내용]
|
|
||||||
- [ ] /list
|
|
||||||
- [x] /update label: \[명령어] content: \[내용]
|
|
||||||
- [x] /delete label: \[명령어]
|
|
||||||
### 매니저 명령어 (on Discord)
|
|
||||||
- [x] /addmanager user: \[Discord user]
|
|
||||||
- [x] /listmanager
|
|
||||||
- [x] /removemanager user: \[Discord user]
|
|
||||||
### 관리 명령어 (on Chzzk chat)
|
### 관리 명령어 (on Chzzk chat)
|
||||||
- [x] !명령어추가 \[명령어] \[내용]
|
- [x] !명령어추가 \[명령어] \[내용]
|
||||||
- [x] !명령어수정 \[명령어] \[내용]
|
- [x] !명령어수정 \[명령어] \[내용]
|
||||||
@ -42,32 +31,6 @@
|
|||||||
- [ ] !노래삭제 \[번호]
|
- [ ] !노래삭제 \[번호]
|
||||||
- [ ] !노래설정 \[내용] \[켜기/끄기]
|
- [ ] !노래설정 \[내용] \[켜기/끄기]
|
||||||
|
|
||||||
### Envs
|
|
||||||
- DISCORD_TOKEN
|
|
||||||
- DB_URL
|
|
||||||
- DB_USER
|
|
||||||
- DB_PASS
|
|
||||||
- RUN_AGENT = `false`
|
|
||||||
- NID_AUT
|
|
||||||
- NID_SES
|
|
||||||
|
|
||||||
### 사용 예시
|
|
||||||
- 팔로우
|
|
||||||
- `/add label: !팔로우 content: <name>님은 오늘로 <following>일째 팔로우네요!`
|
|
||||||
- 출첵
|
|
||||||
- `/add label: !출첵 content: <name>님의 <daily_counter:attendance>번째 출석! fail_content: <name>님은 오늘 이미 출석했어요! <daily_counter:attendance>번 했네요?`
|
|
||||||
- `/add label: ? content: <name>님이 <counter:hook>개째 갈고리 수집`
|
|
||||||
- ㄱㅇㅇ
|
|
||||||
- `/add label: ㄱㅇㅇ content: <counter:cute>번째 ㄱㅇㅇ`
|
|
||||||
- `/add label: ㄱㅇㅇ content: 나누 귀여움 +<counter:cute>`
|
|
||||||
- 풉
|
|
||||||
- `/add label: 풉 content: <counter:poop>번째 비웃음?`
|
|
||||||
- `/add label: 풉키풉키 content: <counter:poop>번째 비웃음?`
|
|
||||||
- 바보
|
|
||||||
- `/add label: 바보 content: 나 바보 아니다?`
|
|
||||||
- `/add label: 바보 content: <counter:fool> 번째 바보? 나 바보 아니다?`
|
|
||||||
- 첫방송
|
|
||||||
- `/add label: 첫방송 content: 24년 7월 23일부터 <days:2024-07-23>일 째 방송중!`
|
|
||||||
|
|
||||||
## 사용 기술스택
|
## 사용 기술스택
|
||||||
- [Exposed](https://github.com/JetBrains/Exposed)
|
- [Exposed](https://github.com/JetBrains/Exposed)
|
||||||
|
@ -84,7 +84,7 @@ class MessageHandler(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun commandListCommand(msg: SessionChatMessage, user: User) {
|
private fun commandListCommand(msg: SessionChatMessage, user: User) {
|
||||||
handler.sendChat("리스트는 여기입니다. https://nabot.mori.space/commands/${user.token}")
|
handler.sendChat("리스트는 여기입니다. https://chibot.mori.space/commands/${user.token}")
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun manageAddCommand(msg: SessionChatMessage, user: User) {
|
private fun manageAddCommand(msg: SessionChatMessage, user: User) {
|
||||||
@ -294,7 +294,7 @@ class MessageHandler(
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
handler.sendChat("리스트는 여기입니다. https://nabot.mori.space/songs/${user.token}")
|
handler.sendChat("리스트는 여기입니다. https://chibot.mori.space/songs/${user.token}")
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun songStartCommand(msg: SessionChatMessage, user: User) {
|
private fun songStartCommand(msg: SessionChatMessage, user: User) {
|
||||||
@ -307,7 +307,7 @@ class MessageHandler(
|
|||||||
if(user.discord != null) {
|
if(user.discord != null) {
|
||||||
bot.retrieveUserById(user.discord!!).queue { discordUser ->
|
bot.retrieveUserById(user.discord!!).queue { discordUser ->
|
||||||
discordUser?.openPrivateChannel()?.queue { channel ->
|
discordUser?.openPrivateChannel()?.queue { channel ->
|
||||||
channel.sendMessage("여기로 접속해주세요! ||https://nabot.mori.space/songlist||.")
|
channel.sendMessage("여기로 접속해주세요! ||https://chibot.mori.space/songlist||.")
|
||||||
.queue()
|
.queue()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user