mirror of
https://github.com/brandons209/Red-bot-Cogs.git
synced 2024-06-02 18:45:17 +12:00
var error
This commit is contained in:
parent
d46bbbd3a4
commit
88eb4b4f1c
|
@ -98,7 +98,7 @@ class ScriptCog:
|
|||
|
||||
def _write_config(self):
|
||||
with open("data/scriptcog/config.txt", "w") as f:
|
||||
f.write("{}\n{}".format(self.world_limit, self.cooldown_limit))
|
||||
f.write("{}\n{}".format(self.word_limit, self.cooldown_limit))
|
||||
|
||||
@commands.command(pass_context=True, no_pm=True)
|
||||
async def setwordlimit(self, ctx, num_words : int = 100):
|
||||
|
@ -126,6 +126,8 @@ class ScriptCog:
|
|||
elif time.time() - self.cooldown < self.cooldown_limit:
|
||||
await self.bot.say("Sorry, I am cooling down, please wait {:.0f} seconds.".format(self.cooldown_limit - (time.time() - self.cooldown)))
|
||||
|
||||
self.cooldown = time.time()
|
||||
|
||||
if temp > 1.0:
|
||||
temp = 1.0
|
||||
elif temp < 0:
|
||||
|
|
Loading…
Reference in a new issue