mirror of
https://github.com/ethanrusz/echbot.git
synced 2024-11-24 21:07:45 -05:00
Remove crate from pub mod elements
This commit is contained in:
parent
0fabaa7ca4
commit
54e351186a
4 changed files with 5 additions and 5 deletions
|
@ -1,3 +1,3 @@
|
|||
// Group all commands for registration
|
||||
pub(crate) mod slur;
|
||||
pub(crate) mod team;
|
||||
pub mod slur;
|
||||
pub mod team;
|
||||
|
|
|
@ -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."));
|
||||
|
|
|
@ -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"]
|
||||
|
|
|
@ -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>;
|
||||
|
|
Loading…
Reference in a new issue