From 553352797999f4f80ba26c6c957e71b9f9fbdc87 Mon Sep 17 00:00:00 2001 From: Evann Regnault Date: Mon, 1 Aug 2022 20:17:19 +0200 Subject: [PATCH] Logs in status_message.rs + README.md + LICENCE.md --- LICENCE.md | 21 +++++++++++++++++++++ README.md | 27 +++++++++++++++++++++++++++ src/interactions/status_message.rs | 4 +++- 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 LICENCE.md create mode 100644 README.md diff --git a/LICENCE.md b/LICENCE.md new file mode 100644 index 0000000..265925f --- /dev/null +++ b/LICENCE.md @@ -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. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..251d851 --- /dev/null +++ b/README.md @@ -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)] \ No newline at end of file diff --git a/src/interactions/status_message.rs b/src/interactions/status_message.rs index ef51883..d2d390a 100644 --- a/src/interactions/status_message.rs +++ b/src/interactions/status_message.rs @@ -42,7 +42,9 @@ pub async fn update_status_message(ctx: Context) { }).await.unwrap(); } - Err(_) => {} + Err(_) => { + println!("Cannot update guild : {}", sm.channel_id); + } } } interval.tick().await;