Started streamer copilot extension

This commit is contained in:
Ben Arc
2021-04-12 20:31:39 +01:00
parent 237a6b369f
commit f29a852e9d
11 changed files with 1254 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
from sqlite3 import Row
from typing import NamedTuple
import time
class Copilots(NamedTuple):
id: str
user: str
title: str
animation: str
show_message: bool
amount: int
lnurl_title: str
@classmethod
def from_row(cls, row: Row) -> "Charges":
return cls(**dict(row))
@property
def paid(self):
if self.balance >= self.amount:
return True
else:
return False