Removed debug statements.

This commit is contained in:
Storm Dragon
2025-11-20 13:09:35 -05:00
parent fc5726a4f1
commit 5ca4428645

View File

@@ -7,9 +7,6 @@ userName="$1"
channelName="$2"
shift 2
# Debug logging
echo "DEBUG say.sh: userName='$userName' channelName='$channelName' args='$*'" >> "$log"
# Check if there are any arguments
if [[ -z "$*" ]]; then
msg "$channelName" "$userName: Please provide a message to say."
@@ -27,7 +24,6 @@ if [[ "$channelName" == "$userName" ]]; then
# PM context: check if first argument is a channel name
# Extract just the first word (bot.sh passes all remaining args as a single string)
firstWord="${1%% *}"
echo "DEBUG say.sh: PM context detected, firstWord='$firstWord', allArgs='$*'" >> "$log"
# Note: bot.sh strips "# " (hash-space) from commands, but "#channel" stays intact
# Remove # prefix if present for comparison