Rename openai module to personality

This commit is contained in:
Alex Page 2023-03-02 22:57:00 -05:00
parent 90c65693de
commit c5ee1a21cd
3 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@ use poise::serenity_prelude::{EmbedMessageBuilding, MessageBuilder};
use songbird::create_player;
use tracing::{debug, log::warn};
use crate::{openai, CommandContext, Error};
use crate::{personality, CommandContext, Error};
#[poise::command(slash_command)]
pub async fn join(ctx: CommandContext<'_>) -> Result<(), Error> {
@ -82,7 +82,7 @@ pub async fn play(
if let Some(handler_lock) = manager.get(guild.id) {
let mut msg = MessageBuilder::new();
msg.push_line(String::from(openai::get_random_loading_message()))
msg.push_line(String::from(personality::get_random_loading_message()))
.push_named_link(
"",
"https://media.giphy.com/media/H1dxi6xdh4NGQCZSvz/giphy.gif",
@ -103,7 +103,7 @@ pub async fn play(
let mut msg = MessageBuilder::new();
// Optional sassy commentary!
match openai::get_sassy_commentary(&title).await {
match personality::get_sassy_commentary(&title).await {
Ok(commentary) => {
msg.push_line(&commentary).push_line("");
}

View file

@ -1,7 +1,7 @@
#![warn(clippy::all)]
mod commands;
mod openai;
mod personality;
use commands::*;