mirror of
https://github.com/maubot/maubot
synced 2025-08-29 12:10:38 +00:00
Add configuration for plugins
This commit is contained in:
parent
ac5f059ef4
commit
b29a7d186e
7 changed files with 57 additions and 9 deletions
|
@ -16,10 +16,10 @@
|
|||
import random
|
||||
import string
|
||||
|
||||
from mautrix.util import BaseConfig
|
||||
from mautrix.util import BaseFileConfig
|
||||
|
||||
|
||||
class Config(BaseConfig):
|
||||
class Config(BaseFileConfig):
|
||||
@staticmethod
|
||||
def _new_token() -> str:
|
||||
return "".join(random.choice(string.ascii_lowercase + string.digits) for _ in range(64))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue