40 lines
2.0 KiB
Markdown
Raw Normal View History

2020-04-10 13:56:56 +03:00
# WelcomeCog
2020-05-03 12:16:36 +03:00
This is the Kanium community/guild welcome cog. it sends a DM to any new user that joins the Kanium discord with a [message](./data/embedded_message.json), which has been templated in a json format.
Furthermore, this cog allows the ability to monitor discord activity and log it into a specific channel using the specific commands. The tracking of the bot resets the daily statistics every 24 hours after the bot has been launched.
2020-04-10 13:56:56 +03:00
# How to use:
2020-04-10 14:16:51 +02:00
In order to use our cog you would need to install it onto your instance of [RedBot](https://github.com/Cog-Creators/Red-DiscordBot).
2020-04-10 13:56:56 +03:00
2020-04-10 13:26:58 +02:00
## Requirments:
2020-04-10 13:56:56 +03:00
- Instance of [RedBot](https://github.com/Cog-Creators/Red-DiscordBot)
- Downloader cog has to be loaded. to load:
```[Prefix]load downloader```
2020-04-10 13:32:30 +02:00
## How to install & load:
2020-04-10 13:56:56 +03:00
1. ```[PREFIX]repo add [RepoName] https://github.com/Kanium/KaniumCogs [ActiveBranch (EX: Master)] ```
2. ```[PREFIX]cog install [RepoName] welcomeCog```
3. ```[PREFIX]load welcomeCog```
### To update the Cog:
2020-05-03 12:16:36 +03:00
- ```[PREFIX]cog uninstall welcomeCog```
2020-04-10 13:56:56 +03:00
- ```[PREFIX]repo update [RepoName]```
2020-05-03 12:16:36 +03:00
- ```[PREFIX]cog install [RepoName] welcomeCog```
- ```[PREFIX]load welcomeCog```
### Commands
- ```[PREFIX]welcomepreview``` - sends in the chat a preview of the template message
- ```[PREFIX]pullmessage``` - allows you to pull the latest version of your message without restarting the bot
- ```[PREFIX]channel``` - allows you to select a channel in your discord to dump logs to
- ```[PREFIX]stats``` - prints the statistics that the cog has gathered.
- ```[PREFIX]resetstats``` - allows for a hard reset of the stats
2020-04-10 13:56:56 +03:00
### To modify the sent message:
2020-04-10 14:16:51 +02:00
If you would like to modify the message to your liking, you can either :
2020-04-10 13:56:56 +03:00
- fork the bot. change the [message](./data/embedded_message.json) and [welcome.py](./welcome.py) line 9 to your repo.
- fork the bot. update the [welcome.py](./welcome.py) line 9 to be directed to your message.json file that you like without having it hosted on github with your repo.