if {[info exists queue($variable)} {
if {[expr [unixtime] - $queue($variable)]<86400} {
set calctime [expr [unixtime] - queue($variable)]
putquick "PRIVMSG $channel :you cant because you need to wait $calctime"
}
}
set queue($variable) [unixtime]
このコードは Tcl スクリプトに含まれているため、各ユーザーはコマンドを再度実行できるようになるまで 24 時間待つ必要があります。もう一度実行できるようになるまでに待機する必要がある時間 (時間、分、秒) を示すカウントダウンを配置します。しかし、現時点で私ができる唯一のことは、秒数を$calctime
どうすればそれを行うことができますか?間違いなく私の試み$calctime
は失敗です:P