Onionr/static-data/default-plugins/circles/main.py

46 lines
1.3 KiB
Python
Raw Normal View History

2020-01-15 06:25:16 +00:00
"""Onionr - Private P2P Communication.
2018-07-11 07:35:22 +00:00
2020-01-15 06:25:16 +00:00
This default plugin handles "flow" messages
(global chatroom style communication)
"""
import sys
import os
2021-02-21 23:22:18 +00:00
import locale
2020-01-15 06:25:16 +00:00
locale.setlocale(locale.LC_ALL, '')
2021-02-21 23:22:18 +00:00
from blockio.subprocgenerate import gen_and_store_vdf_block
2020-01-15 06:25:16 +00:00
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
# import after path insert
import flowapi # noqa
"""
2021-02-21 23:22:18 +00:00
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
2020-01-15 06:25:16 +00:00
"""
2018-07-11 07:35:22 +00:00
2019-04-27 15:43:16 +00:00
flask_blueprint = flowapi.flask_blueprint
security_whitelist = ['circles.circlesstatic', 'circles.circlesindex']
2018-07-11 07:35:22 +00:00
2020-03-28 05:16:42 +00:00
plugin_name = 'circles'
2021-02-21 23:22:18 +00:00
PLUGIN_VERSION = '1.0.0'
2018-07-11 07:35:22 +00:00
2020-01-15 06:25:16 +00:00
2020-03-28 05:16:42 +00:00
def on_circles_cmd(api, data=None):
2021-02-21 23:22:18 +00:00
message = ""
while message != "-q":
message = input("Enter message")
gen_and_store_vdf_block()
2019-07-29 03:00:38 +00:00
2020-01-15 06:25:16 +00:00