|
|
|
@ -1,4 +1,5 @@ |
|
|
|
|
import subprocess |
|
|
|
|
from os import getcwd |
|
|
|
|
from abc import ABC, abstractmethod |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -14,11 +15,11 @@ class TermuxNotifier(Notifier): |
|
|
|
|
if 'url' in kwargs: |
|
|
|
|
args = args + ['--action', f'termux-open-url {kwargs["url"]}', |
|
|
|
|
'--button1', 'Delete', |
|
|
|
|
'--button1-action', f'python3 notification_button.py -b {kwargs["board"]} -p {kwargs["postId"]} -a delete', |
|
|
|
|
'--button1-action', f'python3 {getcwd()}/notification_button.py -b {kwargs["board"]} -p {kwargs["postId"]} -a delete', |
|
|
|
|
'--button2', 'Delete+Ban', |
|
|
|
|
'--button2-action', f'python3 notificaiton_button.py -b {kwargs["board"]} -p {kwargs["postId"]} -a delete,ban', |
|
|
|
|
'--button2-action', f'python3 {getcwd()}/notificaiton_button.py -b {kwargs["board"]} -p {kwargs["postId"]} -a delete,ban', |
|
|
|
|
'--button3', 'Delete+Global Ban', |
|
|
|
|
'--button3-action', f'python3 notification_button.py -b {kwargs["board"]} -p {kwargs["postId"]} -a delete,global_ban'] |
|
|
|
|
'--button3-action', f'python3 {getcwd()}/notification_button.py -b {kwargs["board"]} -p {kwargs["postId"]} -a delete,global_ban'] |
|
|
|
|
subprocess.call(args) |
|
|
|
|
|
|
|
|
|
class NotifySendNotifier(Notifier): |
|
|
|
|