topkecleon / otouto

A Lua-based Telegram bot with plugins.
http://otou.to
GNU Affero General Public License v3.0
173 stars 112 forks source link

Administration plugin doesn't work #84

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hello, in private and in supergroup, the basic commands work, such as:

Available commands: • /8ball • /about • /calc • /cash [amount] to • /cat • /color [ffffff] • /commit • /echo • /groups [query] • /hackernews • /help [command] • /imdb • /location • /me • /nick • /ping • /pun • /reddit [r/subreddit | query] • /roll • /shout • /slap [target] • /time • /urbandictionary • /whoami • /wikipedia • /xkcd [i] Arguments: [optional]

Commands for Users: • /groups [query] • /ahelp [command] • /ops • /description • /rules [i] • /motd • /link Arguments: [optional]

¿Any idea? Thanks

topkecleon commented 8 years ago

I have tried adding a group to manage with /gadd in group, but it does not respond or an error appears.

What is the error? Also, show me the contents of the plugins table in config.lua.

ghost commented 8 years ago

Sorry, I correct the above: There is no answer. No get error config.lua plugins:

 plugins = { -- To enable a plugin, add its name to the list.
        'users',
        'administration',
        'end_forwards',
        'blacklist',
        'about',
        'calc',
        'cats',
        'hexcolor',
        'commit',
        'control',
        'currency',
        'dice',
        'echo',
        'eightball',
        'location',
        'hackernews',
        'imdb',
        'me',
        'nick',
        'ping',
        'pun',
        'reddit',
        'shout',
        'slap',
        'time',
        'urbandictionary',
        'whoami',
        'wikipedia',
        'xkcd',
        -- Add new plugins here.
        'help',

    }
topkecleon commented 8 years ago

Does the group you're trying to add actually belong to you? That's kind of important.

ghost commented 8 years ago

The group has been created by me, the same account that is admin in config.lua and the same account used in telegram-cli

ghost commented 8 years ago

If you want I can give you the information to access the server and the nick of the bot. Maybe you can see the problem more quickly, I do not know it can be going wrong

topkecleon commented 8 years ago

If it's failing without any notice, then an error will have been posted in your log_chat or to the console. Please find this error and post it here.

ghost commented 8 years ago

I don't get any error in console or in log_chat.

I send /groups (in a group created by me):

send command groups

In console:

information of groups with command groups

When i send /gadd (in a group created by me):

send command add group

In console:

nothing with gadd

With log_chat = '999999999', --@adminID or log_chat = nil, I do not receive any errors in chat or console.

ghost commented 8 years ago

Solved, i'm very stupid XDDD In config.lua i set:

-- Your Telegram ID.
    admin = '999999999',

This don't work and don't get error.


-- Your Telegram ID.
    admin = 999999999,

This work.