Compare commits
2 Commits
5962fd7c12
...
305f1cd616
Author | SHA1 | Date |
---|---|---|
jmjl | 305f1cd616 | |
jmjl | 89c334b9d0 |
|
@ -22,9 +22,9 @@ def last_tilde(msg):
|
|||
if callable(data):
|
||||
datax = inspect.getclosurevars(data).nonlocals
|
||||
if len(datax) == 0:
|
||||
data = inspect.getsource(data)
|
||||
data = ' '.join(inspect.getsource(data).rsplit())
|
||||
else: data = datax
|
||||
if answer is None:
|
||||
data = str(data)
|
||||
answer = f"{pnick}'s last tilde's answer was supposed to be `{data}`."
|
||||
answer = f"{nick}'s last tilde's answer was supposed to be `{data}`."
|
||||
return pinhook.plugin.message(answer)
|
||||
|
|
Loading…
Reference in New Issue