Skip to content

Chatterbot Issues with Gitter #794

@sal48

Description

@sal48

I saw that people requested Gitter examples, and some were added. However, I haven't been able to get the bot to connect to Gitter, and when looking at the constructor, it looks so basic. No where in the examples do we pass an OAuth key or secret key. Has anyone been able to connect to Gitter using simply the API key? Here's my sample below attempting to connect to a room called 'meta-game'. (I blocked out my API key for obvious reasons.)

# Create a new ChatBot instance
bot = ChatBot('Ava',
    storage_adapter='chatterbot.storage.MongoDatabaseAdapter',
    logic_adapters=[
        {
            "import_path": "chatterbot.logic.BestMatch"
        }
    ],
    filters=[
        'chatterbot.filters.RepetitiveResponseFilter'
    ],
	# Gitter information
    input_adapter="chatterbot.input.Gitter",
    gitter_api_token="[my_api_key]",
    gitter_room="meta-game",
    gitter_only_respond_to_mentions=True,
    output_adapter="chatterbot.output.Gitter",

    database='ava_gitter',
    database_uri='127.0.0.1:27017',
    trainer='chatterbot.trainers.ListTrainer'
)

The above code fails to connect to Gitter with the failure code:

chatterbot.input.gitter.HTTPStatusException: u'404 status code recieved'

Has anyone been successful with Gitter? Am I missing something obvious?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions