WickedShell / ForumPost

A B3 Bot plugin that automatically creates a post to a forum or website about the ban
3 stars 1 forks source link

label #2

Open EHDSpoon opened 13 years ago

EHDSpoon commented 13 years ago

i keep getting this error when i try to run B3 "110504 18:18:13 INFO STDOUT Error: no control matching name 'user' File "C:\b3\b3init.py", line 177, in start console.start() File "C:\b3\b3\parser.py", line 393, in start self.startPlugins() File "C:\b3\b3\parser.py", line 657, in startPlugins p.onStartup() File "C:\b3\b3\plugin.py", line 148, in onStartup self.startup() File "C:\b3\b3\extplugins\forumpost.py", line 84, in startup self.login() File "C:\b3\b3\extplugins\forumpost.py", line 54, in login form[self.loginFormUserName] = self.userName File "C:\Python26\lib\site-packages\mechanize_form.py", line 2780, in setitem control = self.find_control(name) File "C:\Python26\lib\site-packages\mechanize_form.py", line 3101, in find_control return self._find_control(name, type, kind, id, label, predicate, nr) File "C:\Python26\lib\site-packages\mechanize_form.py", line 3185, in _find_control raise ControlNotFoundError("no control matching "+description)"

WickedShell commented 13 years ago

This is why this plugin hasn't been announced on the big brother bot site yet. I have not found a simple way to setup the config file, or explain how to select the values for it.

In basic terms all the plugin does, is on a ban event it access's a webpage and submits some formatted data to it. The "user" control that can't be found above is an error that occurs when one attempts to fill in a field on a site that doesn't exsist on that site.

I'm working on refactoring this to a state in which this is more easily configured (READ: intelligent useage of the XML file), and a support tool to help people discover how to set it up.