Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Default (cli) configurable groups configs.json #146

Open
uduntuntu opened this issue Feb 4, 2022 · 2 comments
Open

[Request] Default (cli) configurable groups configs.json #146

uduntuntu opened this issue Feb 4, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@uduntuntu
Copy link

I just want to add default poll questions for my bot. It's irritating to remember every time to add

/captcha_poll question <question>
/captcha_poll option 1 <option 1>
/captcha_poll option 2 <option 2>
/captcha_poll correct_option <number of correct option>
/captcha_mode poll

/welcome_msg <message>

example config.json:

~/TLG_JoinCaptchaBot/sources$ cat data/chats/-1001115432082/configs.json
{
    "Title": "PPFI - Verkkopalveluiden helpdesk",
    "Link": "Unknown",
    "Language": "EN",
    "Enabled": true,
    "URL_Enabled": true,
    "RM_All_Msg": false,
    "Captcha_Chars_Mode": "poll",
    "Captcha_Time": 300,
    "Captcha_Difficulty_Level": 2,
    "Restrict_Non_Text": 0,
    "Rm_Result_Msg": true,
    "Rm_Welcome_Msg": true,
    "Poll_Q": "Miten piraatti sanoo? How could the Pirate say?",
    "Poll_A": [
        "I'm a bot. Olen botti.",
        "Yarr!",
        "",
        "",
        "",
        ""
    ],
    "Poll_C_A": 2,
    "Welcome_Msg": "Hei {0}, tervetuloa ryhmään\\! Muista käyttäytyä\\.\nHi {0}, welcome to the group and remember to behave\\.",
    "Ignore_List": []

As a Finnish Pirate Party admin team we need to moderate 50+ Telegram groups.

@J-Rios J-Rios changed the title Default (cli) configurable groups configs.json needed [Request] Default (cli) configurable groups configs.json Feb 4, 2022
@J-Rios J-Rios added the enhancement New feature or request label Feb 4, 2022
@J-Rios
Copy link
Owner

J-Rios commented Feb 4, 2022

Hi,

So, you are requesting to implement some command line interface to configure config.json files from the host machine without using Telegram interface (in your own Bot deployment instance/s)?

Regards.

@uduntuntu
Copy link
Author

uduntuntu commented Feb 4, 2022

Nope, just template json files somewhere into sources tree. Defaults edit via bot private discussion might be nice also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants