Logs in status_message.rs + README.md + LICENCE.md

This commit is contained in:
Evann Regnault 2022-08-01 20:17:19 +02:00
parent 8cd9fbd631
commit 5533527979
3 changed files with 51 additions and 1 deletions

21
LICENCE.md Normal file
View file

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2022 Evann (Estym) Regnault
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

27
README.md Normal file
View file

@ -0,0 +1,27 @@
# Drunk-Venti-Rust
A discord bot that provides Genshin Impact data to users
[![builds.sr.ht status](https://builds.sr.ht/~estym/Drunk-Venti.svg)](https://sr.ht/~estym/Drunk-Venti?)
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/Estyms/Drunk-Venti-Rust/Rust?label=github)](https://github.com/Estyms/Drunk-Venti-Rust)
## Features
### On demand Genshin Impact Infos
- /genshin builds [character] : Gives recommended builds for a specific characters
- /genshin weapon [name] : Gives information about a certain weapon in the game
- /genshin artifact [name] : Gives information about an artifact set
### Calendar
**Usage : /createstatusmessage [channel]**
That commands create a message in the desired channel that gets updated every hours.
In that message you can see what events are currently going on as well as the next to come.
## APIs
- [Serenity](https://github.com/serenity-rs/serenity) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/serenity-rs/serenity/CI?label=github)
- [Paimon.moe](https://paimon.moe/) by [@MadeBaruna](https://github.com/MadeBaruna)
- Drunk-Venti-Api - [[SourceHut](https://git.sr.ht/~estym/Drunk-Venti-Api)] [[Github](https://github.com/Estyms/Drunk-Venti-Api)]

View file

@ -42,7 +42,9 @@ pub async fn update_status_message(ctx: Context) {
}).await.unwrap(); }).await.unwrap();
} }
Err(_) => {} Err(_) => {
println!("Cannot update guild : {}", sm.channel_id);
}
} }
} }
interval.tick().await; interval.tick().await;