mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
50_SSChatBot: contrib 1.0.0
git-svn-id: https://svn.fhem.de/fhem/trunk@20620 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fbc894e886
commit
e0a220b3c2
@ -274,11 +274,8 @@ sub SSChatBot_Set($@) {
|
||||
}
|
||||
|
||||
if ($opt eq "botToken") {
|
||||
$prop =~ /^(%22)(.*)(%22)$/ if($prop);
|
||||
return "The token you entered was incomplete ! \n".
|
||||
"Take the complete string after \"&token=\" from the Synology Chat \"Integration->Bots->incoming URL\" menu. \n".
|
||||
"The token has the form like \"%22U6FOMH9IgT2WECJceaIW0fNwEiVVfqWQFP7gJQUJ6vpaGo8Z1SJkOGP7zlVIscCp%22\" " if (!$1 || !$3);
|
||||
($success) = SSChatBot_setToken($hash,$2,"botToken");
|
||||
return "The command \"$opt\" needs an argument." if (!$prop);
|
||||
($success) = SSChatBot_setToken($hash,$prop,"botToken");
|
||||
|
||||
if($success) {
|
||||
return "botToken saved successfully";
|
||||
|
Loading…
x
Reference in New Issue
Block a user