If the nick is changed on command using the nick module, retain the new nick after reconnect or restart

This commit is contained in:
Kyle 2020-10-25 19:06:24 +00:00
parent 830cd9837b
commit 8dc71fdaad
1 changed files with 1 additions and 0 deletions

View File

@ -6,4 +6,5 @@ shift
if [[ "$user" =~ $allowList ]]; then
./modules/do/do.sh "$1" "#$channel" "does a magical gesture and turns into ${1}!"
nick $1
sed -i bot.cfg -e "s/nick=.*/nick=\"$1\"/"
fi