Remove unused files. Fix compiler warnings. Update help

This commit is contained in:
2022-09-13 10:46:45 +01:00
parent f5acab7440
commit a05d6f77db
13 changed files with 11 additions and 23 deletions

View File

@ -11,7 +11,6 @@ mod utils;
use std::{env, sync::Arc};
use dashmap::DashMap;
use dotenv::dotenv;
use poise::serenity::{
builder::CreateApplicationCommands,
model::{
@ -72,8 +71,6 @@ pub async fn register_application_commands(
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
env_logger::init();
dotenv()?;
let discord_token = env::var("DISCORD_TOKEN").expect("Missing DISCORD_TOKEN from environment");
let options = poise::FrameworkOptions {
@ -138,9 +135,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
register_application_commands(
ctx,
framework,
env::var("DEBUG_GUILD")
.map(|inner| GuildId(inner.parse().expect("DEBUG_GUILD not valid")))
.ok(),
None,
)
.await
.unwrap();