adroid_ea
所属分类:自然语言处理
开发工具:TypeScript
文件大小:0KB
下载次数:0
上传日期:2023-08-09 20:47:15
上 传 者:
sh-1993
说明: 不一致机器人,
(Discord bot,)
文件列表:
.eslintignore (26, 2024-01-05)
.eslintrc.js (1836, 2024-01-05)
.husky/ (0, 2024-01-05)
.husky/pre-commit (72, 2024-01-05)
.prettierrc (198, 2024-01-05)
Dockerfile (324, 2024-01-05)
LICENSE (34523, 2024-01-05)
assets/ (0, 2024-01-05)
assets/hello_there.png (129310, 2024-01-05)
assets/qotd/ (0, 2024-01-05)
assets/qotd/qotd.png (44478, 2024-01-05)
assets/qotd/request.png (21688, 2024-01-05)
assets/swiftVoice/ (0, 2024-01-05)
assets/swiftVoice/create.gif (223946, 2024-01-05)
assets/swiftVoice/limit.gif (715367, 2024-01-05)
assets/swiftVoice/lock.gif (1499243, 2024-01-05)
assets/swiftVoice/transfer-ownership.gif (867053, 2024-01-05)
assets/swiftVoice/voice-ban.gif (1439596, 2024-01-05)
assets/twitch/ (0, 2024-01-05)
assets/twitch/alert.png (29311, 2024-01-05)
docker-compose.yml (1613, 2024-01-05)
getGameId.js (489, 2024-01-05)
jest.config.js (5922, 2024-01-05)
package-lock.json (250097, 2024-01-05)
package.json (1978, 2024-01-05)
src/ (0, 2024-01-05)
src/client.ts (1131, 2024-01-05)
src/delete-commands.ts (518, 2024-01-05)
src/deploy-commands.ts (2325, 2024-01-05)
... ...
# Introduction
This is a discord bot primarly made for my discord server (this is why some values are hard coded) but feel free to use the code for yourself.
I self-host the bot but my code isn't yet strong enough to give an invitation link. But feel free to contribute !
# Features
## Modules
### Events management
- Create and delete events (administrator)
- Join created events (you can unRSVP)
- Waiting list available (max participants)
> Sooo much TODO (event scheduling otw, with alerts 1 week, 1 day and 1 hour prior to the event)
### Moderation
- Purge channel
### Notifications
> Rework in progress, will change soon
- Private logs
- Message update, delete
- Nickname update
- Public logs
- Member arrival, departure
### Party Mode
> WIP, it will come back... soon enough
### QotD (Question of the Day)
- Everyday, sends a new question in the channel of your choice and pin it. (Provided there are questions in the database)
![qotd](https://github.com/assets/qotd/qotd.png)
- People can give their own questions
![qotd](https://github.com/assets/qotd/request.png)
### TempVoice
- Auto manage voice channels, deletes and creates channels so only one is needed
![create](https://github.com/assets/tempVoice/create.gif)
The voice owner can :
- Lock the channel to everyone
![lock](https://github.com/assets/tempVoice/lock.gif)
- Transfer ownership
![transfer-ownership](https://github.com/assets/tempVoice/transfer-ownership.gif)
- Ban someone in particular (will kick them out)
![voice-ban](https://github.com/assets/tempVoice/voice-ban.gif)
- Set a user limit to the channel
![limit](https://github.com/assets/tempVoice/limit.gif)
### Twitch
- Alerts for a Twitch Streamer when going live or changing category
![alert](https://github.com/assets/twitch/alert.png)
- Add a custom role when a friend goes live and removes it once they stop.
## Misc
- Some memes stuff like "hello there" and some private jokes
![hello_there](https://github.com/assets/hello_there.png)
# Development
env:
```
DISCORD_APP_ID
DISCORD_TOKEN
MONGO_URI
NODE_ENV # will push the commands to your server if set to production
REDIS_HOST
TWITCH_CLIENT_ID
TWITCH_CLIENT_SECRET
WEBHOOK_LOG_URL
```
```
npm i
npm start
```
# Production
```
npm install --omit=dev
npm start
```
# Docker
To start your application:
```
docker-compose up -d
```
To shut down your application:
```
docker-compose down
```
To view your application's logs:
```
docker-compose logs
```
From Dockerhub:
```sh
docker pull adanea/adroid_ea:latest
```
For the full command list please view the [Docker Documentation](https://github.comhttps://docs.docker.com/engine/reference/commandline/cli/).
# Documentation
- [discord.js](https://github.comhttps://old.discordjs.dev/#/docs/discord.js/14.11.0/general/welcome)
近期下载者:
相关文件:
收藏者: