Remove crate from pub mod elements

This commit is contained in:
Em (Ethan) Ruszanowski 2023-01-31 19:25:10 -05:00
parent 0fabaa7ca4
commit 54e351186a
No known key found for this signature in database
GPG key ID: C3E7A3C0B1491DFE
4 changed files with 5 additions and 5 deletions

View file

@ -1,3 +1,3 @@
// Group all commands for registration
pub(crate) mod slur;
pub(crate) mod team;
pub mod slur;
pub mod team;

View file

@ -8,7 +8,7 @@ use std::{
/// Basically a ping command
#[poise::command(slash_command, prefix_command)]
pub(crate) async fn slur(ctx: Context<'_>) -> Result<(), Error> {
pub async fn slur(ctx: Context<'_>) -> Result<(), Error> {
let file = File::open("quotes.txt").unwrap_or_else(|_e| panic!("Quote file missing.")); // Open the quotes file
let file = BufReader::new(file); // Read the quotes file
let quotes = file.lines().map(|res| res.expect("Failed to read line."));

View file

@ -18,7 +18,7 @@ fn team_to_ping(team: &[&String]) -> String {
/// Splits up players for custom matches
#[poise::command(slash_command)]
pub(crate) async fn team(
pub async fn team(
ctx: Context<'_>,
#[description = "Your order voice channel"]
#[rename = "order"]

View file

@ -2,7 +2,7 @@ use poise::serenity_prelude as serenity;
mod commands;
struct Data {}
pub struct Data {}
type Error = Box<dyn std::error::Error + Send + Sync>;
type Context<'a> = poise::Context<'a, Data, Error>;