mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
twitter: allow random text after tipping
This commit is contained in:
parent
c51bde4afa
commit
43cead6582
1 changed files with 5 additions and 1 deletions
|
@ -172,9 +172,13 @@ class TwitterNetwork(Network):
|
||||||
if not match:
|
if not match:
|
||||||
continue
|
continue
|
||||||
target=match.group(0)
|
target=match.group(0)
|
||||||
|
match=re.search(amount_regexp,line.replace(target,'').strip())
|
||||||
|
if not match:
|
||||||
|
continue
|
||||||
|
amount=match.group(0)
|
||||||
if self.on_command:
|
if self.on_command:
|
||||||
try:
|
try:
|
||||||
synthetic_cmd=['tip',target.replace('@',''),line.replace('+','').replace(target,'').strip()]
|
synthetic_cmd=['tip',target.replace('@','').strip(),amount.replace('+','').strip()]
|
||||||
log_log('Running synthetic command: %s' % (str(synthetic_cmd)))
|
log_log('Running synthetic command: %s' % (str(synthetic_cmd)))
|
||||||
self.on_command(link,synthetic_cmd)
|
self.on_command(link,synthetic_cmd)
|
||||||
except Exception,e:
|
except Exception,e:
|
||||||
|
|
Loading…
Reference in a new issue