fishroom icon indicating copy to clipboard operation
fishroom copied to clipboard

Room not found

Open Hcreak opened this issue 7 years ago • 4 comments

Room not found

Hcreak avatar Mar 26 '17 09:03 Hcreak

Problem unknown.

bigeagle avatar Mar 26 '17 16:03 bigeagle

I do python3 -m fishroom.fishroom and python3 -m fishroom.web then I watch 127.0.0.1:8000 display room not found my english is bad i am sorry

Hcreak avatar Mar 26 '17 17:03 Hcreak

Same problem config.py:

config = {
    "debug": True,
    "timezone": "Asia/Shanghai",
    "baseurl": "http://54.251.128.92:8000",  # do not end with "/"
    "name": "teleboto",
    "cookie_secret": "123456", # you should use a strong random secret
    "cmd_me": "tg_bot",  # username of the telegram bot

    "redis": {
        # "unix_socket_path": "/var/run/redis/redis.sock"
        "host": "127.0.0.1",  # hostname for redis server
        "port": 6379,
        "prefix": "fishroom",
    },

    "irc": {
        "server": "irc.freenode.net",
        "port": 6697,
        "nick": "XiaoT",       # IRC nick name
        "password": None,      # IRC account password, if nickname registered
        "ssl": True,
        "blacklist": [
            "[Olaf]",
        ],
    },

    # Uncomment these if you want GitHub OAuth
    # Note that you need to configure your redirect uri the same as the baseurl in GitHub
    # "github": {
    #     "client_id": "", # get these two from github.com
    #     "client_secret": "",
    # },

    # Uncomment these if you want telegram access
    # "telegram": {
    #     "token": "",  # get this from @BotFather
    #     "me": None,
    #     "admin": [],  # admin id (integer)
    # },

    # Uncomment these if you want XMPP-MUC access
    # "xmpp": {
    #     "server": "xmpp.jp",
    #     "port": 5222,
    #     "jid": "[email protected]/resource",
    #     "password": "",
    #     "nick": "XiaoT",
    # },

    # Uncomment these if you want gitter access
    # "gitter": {
    #     "token": "",
    #     "me": "",  # bot username
    # },

    # Uncomment these if you want Matrix access
    # "matrix": {
    #     "server": "https://matrixim.cc:8448",
    #     "user": "fishroom",
    #     "password": "",
    #     "nick": "bot_fishroom",
    #     "bot_msg_pattern": "^mubot|^!wikipedia",
    # },

    # Uncomment these if you want WeChat access
    # "wechat": {},

    # Optional, only if you use qiniu for file_store
    # Comment this out if you don"t use qiniu
    "qiniu": {
        "access_key": "",
        "secret_key": "",
        "bucket": "",
        "base_url": "",
    },

    "photo_store": {
        # set one in ("imgur", "vim-cn", "qiniu")
        "provider": "vim-cn",
        "options": {
            "client_id": "",
        }
    },

    # this is the web interface
    "chatlog": {
        "host": "0.0.0.0",  # hostname for web server
        "port": 8000,
        "default_channel": "teleboto-dev",
    },

    # Comment this out if you don"t use qiniu
    "file_store": {
        "provider": "qiniu",
    },

    "text_store": {
        "provider": "vinergy",
        "options": {
        },
    },

    "plugins": [
        "pia", "imglink", "vote", "hualao"
    ],

    "bindings": {
        "archlinux-cn": {
            "irc": "#archlinux-cn",
            "telegram": "-1001031857103",  # group id can be obtained using bot api
            "xmpp": "[email protected]",
            "matrix": "#archlinux:matrixim.cc"
        },
        "test": {
            # Use room nick name to identify a room
            # TODO: use Uins (https://itchat.readthedocs.io/zh/latest/intro/contact/#uins)
            # to identify a room, but currently I can"t get room Uins on login.
            "wechat": "xxx chat room"
        }
    }
}

# vim: ft=python

ghost avatar Aug 03 '19 15:08 ghost

@Windows10010 The default config should never be used without any modification; one must properly set the altered room/nickname before starting the program. If you are still experiencing the problem after that, please post the full config here (with sensitive information redacted).

BTW @Blalalaaaa I have deleted your post since it looks like an advertisement. If you need to get into contact with Tsinghua TUNA association, please use the info in the "Contact" part on TUNA's homepage ( https://mirror.tuna.tsinghua.edu.cn ).

hosiet avatar Aug 06 '19 15:08 hosiet