Comments (17)
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.
@justinwalker4179 that uses 3.7 just comment them out
from honeybot.
@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.
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.
@justinwalker4179 you need python 3.7
from honeybot.
also do you have a config file?
from honeybot.
Have correct python version, CONNECT. conf has
server_url = chat.freenode.net
port = 6667
name = hb_tst00
from honeybot.
@justinwalker4179 try now after tanfry's PR
from honeybot.
Tried again with updated version with same error. Do I need to fill in info other than the default for config?
from honeybot.
@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.
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.
from honeybot.
What's the best way to test out a plugin since I can't get it running?
from honeybot.
from honeybot.
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.
from honeybot.
This can now be closed
from honeybot.
Related Issues (20)
- add poker plugin HOT 5
- Monopoly GUI HOT 1
- jcommand plugin works not HOT 3
- add search pydocs plugin HOT 7
- add message to friend plugin HOT 2
- Bot time out
- add friends to bot_info
- add roman numeral converter
- add a personality match plugin HOT 4
- Add travisCI HOT 2
- Add lol/abbreviation decoder plugin HOT 5
- Add special command
- expand .def to use Urban dictionary HOT 3
- complete setup.py HOT 5
- add thread support
- News Plugin output fix HOT 1
- change blackjack to keep cards hidden
- Move workshop outside main repo
- Dockerize using TravisCI pipelines
- [BUG] Import Error because of path HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from honeybot.