|
|
|
|
@ -6,6 +6,7 @@ use serenity::model::channel::Message;
|
|
|
|
|
use crate::{utils, Owner};
|
|
|
|
|
|
|
|
|
|
const SM_TEST_CHANNEL_ID: u64 = 280548893135994880;
|
|
|
|
|
const BEL_WORK_USER_ID: u64 = 474259726427750420;
|
|
|
|
|
|
|
|
|
|
// COLOR ROLE IDS
|
|
|
|
|
const ROLE_ID_RED: u64 = 279338933748236289;
|
|
|
|
|
@ -39,7 +40,7 @@ pub async fn parse_command(ctx: Context, msg: Message, server_id: GuildId)
|
|
|
|
|
None => { utils::Logger::log_error(ctx.clone(), &format!("Couldn't get bot owner id")).await; return; }
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
if UserId::from(owner_id) == msg.author.id && command_start == Some(".dotestmsg")
|
|
|
|
|
if (UserId::from(owner_id) == msg.author.id || UserId::from(BEL_WORK_USER_ID) == msg.author.id) && command_start == Some(".dotestmsg")
|
|
|
|
|
{
|
|
|
|
|
if let Some(msg) = utils::send_msg(ctx.clone(), ChannelId::from(SM_TEST_CHANNEL_ID), "Test message!").await
|
|
|
|
|
{
|
|
|
|
|
|