rate limit for guild spam, and m+ format
This commit is contained in:
parent
ff720c9bf3
commit
5fbdd20107
2
guild.py
2
guild.py
|
@ -62,3 +62,5 @@ for news in g["news"]:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
wh.send(push)
|
wh.send(push)
|
||||||
|
|
||||||
|
time.sleep(2) # prevent rate limit, for example with boss FK
|
||||||
|
|
|
@ -84,9 +84,10 @@ for zone, instance in conf.zones.items():
|
||||||
|
|
||||||
#tip = "(piedra +{0} por {1})".format(chests, delta)
|
#tip = "(piedra +{0} por {1})".format(chests, delta)
|
||||||
tip = "(piedra +{0})".format(chests, delta)
|
tip = "(piedra +{0})".format(chests, delta)
|
||||||
msg = "{6} **[{0}](<{7}>) +{1}** hecha en **{2}** {3} por {4} / **rank {5}** de Dun Modr".format(instance, lvl, record, tip, " ".join(party), pos, affix, warcraft_api.format(zone))
|
msg = ":mega: **[{0}](<{5}>) +{1}** hecha en **{2}** {3}, **rank {4}** de Dun Modr".format(instance, lvl, record, tip, pos, warcraft_api.format(zone))
|
||||||
#r.rpush("bot:rss:new", msg)
|
#r.rpush("bot:rss:new", msg)
|
||||||
#print(msg)
|
#print(msg)
|
||||||
|
wh.add_embed(webhook.embed(title=" ".join(party)))
|
||||||
wh.send(msg)
|
wh.send(msg)
|
||||||
|
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue