Rename openai module to personality
This commit is contained in:
parent
90c65693de
commit
c5ee1a21cd
3 changed files with 4 additions and 4 deletions
|
@ -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("");
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#![warn(clippy::all)]
|
||||
|
||||
mod commands;
|
||||
mod openai;
|
||||
mod personality;
|
||||
|
||||
use commands::*;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue