Giter Site home page Giter Site logo

Comments (17)

IronPenguin4179 avatar IronPenguin4179 commented on July 30, 2024

I'd love to try and make this plugin. Currently I'm trying to run main.py and getting a bunch of weird syntax errors that are making me think I'm missing something. This is the first one, but there are so many of this same kind of error, I must be not catching something.

On line 144:

print(f"\033[0;36mListfrom is {listfrom}\033[0;0m")

SyntaxError: invalid syntax

from honeybot.

Abdur-rahmaanJ avatar Abdur-rahmaanJ commented on July 30, 2024

@justinwalker4179 that uses 3.7 just comment them out

from honeybot.

Macr0Nerd avatar Macr0Nerd commented on July 30, 2024

@justinwalker4179 @Abdur-rahmaanJ that was my bad. I left those in for easy debugging and seeing what was being run, if at all.

from honeybot.

IronPenguin4179 avatar IronPenguin4179 commented on July 30, 2024

Having one more issue after commenting out the other lines.

Traceback (most recent call last):
  File "c:\Users\Iron_Penguin\Documents\Bloc\apprenticeship\honeybot\honeybot\honeybot\main.py", line 13, in <module>
    class Bot_core(object):
  File "c:\Users\Iron_Penguin\Documents\Bloc\apprenticeship\honeybot\honeybot\honeybot\main.py", line 15, in Bot_core
    server_url=config['INFO']['server_url'],
  File "C:\Users\Iron_Penguin\AppData\Local\Programs\Python\Python35-32\lib\configparser.py", line 956, in __getitem__
    raise KeyError(key)
KeyError: 'INFO'

from honeybot.

Abdur-rahmaanJ avatar Abdur-rahmaanJ commented on July 30, 2024

@justinwalker4179 you need python 3.7

from honeybot.

Abdur-rahmaanJ avatar Abdur-rahmaanJ commented on July 30, 2024

also do you have a config file?

from honeybot.

IronPenguin4179 avatar IronPenguin4179 commented on July 30, 2024

Have correct python version, CONNECT. conf has

server_url = chat.freenode.net
port = 6667
name = hb_tst00

from honeybot.

Abdur-rahmaanJ avatar Abdur-rahmaanJ commented on July 30, 2024

@justinwalker4179 try now after tanfry's PR

from honeybot.

IronPenguin4179 avatar IronPenguin4179 commented on July 30, 2024

Tried again with updated version with same error. Do I need to fill in info other than the default for config?

from honeybot.

TannerFry avatar TannerFry commented on July 30, 2024

@justinwalker4179
wait for your config file, do you have this:

[INFO]

server_url = chat.freenode.net
port = 6667
name = hb_tst00

I noticed above, you were missing the [INFO] part?

from honeybot.

IronPenguin4179 avatar IronPenguin4179 commented on July 30, 2024

Alright, python issued solved. I have python 3.7, and uninstalled all other version a while back, but my ide defaulted to an older version that wasn't supposed to exist for some reason. Ran main, everything seemed to be running normally. It received a ping from freenode.net, paused and then ran an infinite loop saying

woops string index out of range
'NoneType' object is not subscriptable
Empty line.

I commented out those print messages that were causing problems just in case

from honeybot.

Macr0Nerd avatar Macr0Nerd commented on July 30, 2024

from honeybot.

IronPenguin4179 avatar IronPenguin4179 commented on July 30, 2024

What's the best way to test out a plugin since I can't get it running?

from honeybot.

Macr0Nerd avatar Macr0Nerd commented on July 30, 2024

from honeybot.

IronPenguin4179 avatar IronPenguin4179 commented on July 30, 2024

Already wrote the game separately, but I need tpo know what kind of inputs I'll be getting. For example will the user type

.hangman("guess")
.hangman "guess"
.hangman.letter("o")
.hangman.restart()

If you could give me examples I could finish it up.

from honeybot.

Macr0Nerd avatar Macr0Nerd commented on July 30, 2024

from honeybot.

IronPenguin4179 avatar IronPenguin4179 commented on July 30, 2024

This can now be closed

from honeybot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.