MCPcopy Create free account
hub / github.com/VJBots/VJ-Forward-Bot / add

Method add

plugins/utils.py:37–40  ·  view source on GitHub ↗
(self, key=None, value=1, time=False, start_time=None)

Source from the content-addressed store, hash-verified

35 return self
36
37 def add(self, key=None, value=1, time=False, start_time=None):
38 if time:
39 return self.data[self.id].update({'start': tm.time() if start_time is None else start_time})
40 self.data[self.id].update({key: self.get(key) + value})
41
42 def divide(self, no, by):
43 by = 1 if int(by) == 0 else by

Callers 3

pub_Function · 0.95
restart_pending_forwadsFunction · 0.95
copyFunction · 0.80

Calls 1

getMethod · 0.95

Tested by

no test coverage detected