Skip to content

On message, bot gets stuck in a loop and doesn't post anything. #3

@Kanitama-don

Description

@Kanitama-don

Using the code from the page with no modifications other than necessary ones like token, the makeconvo command works fine, but messaging or mentioning the bot without using makeconvo seems to cause it to get stuck in a loop, endlessly running the results = gpt2.generate() section. I added a print("Test") statement on the next line after the gpt2.generate function and it printed that over and over when I ran the bot and mentioned it on Discord. Something to do with the while loop? I've been out of the loop on programming for years so I'm having trouble figuring it out myself. Any help is appreciated
Capture

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions