Coder Social home page Coder Social logo

ropenttd / suds Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 3.0 178 KB

An OpenTTD dedicated server administration plugin for Supybot / Limnoria written in Python. Forked from openttdcoop/soap

License: GNU General Public License v2.0

Python 99.16% Dockerfile 0.66% Shell 0.19%

suds's People

Contributors

duckfullstop avatar efess avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

suds's Issues

Are you sure this is current?

Hey,

I tried looking through the code. Seems like it's not what you use on your servers? Couldn't find any code referring to the "!reset" command, which works with S1 and S3 bots…

Does not run

I've cloned the libottdadmin2 folder to within the suds folder.

When I try to run init.py i get:
Traceback (most recent call last): File "__init__.py", line 39, in <module> import enums File "/home/citizen/openttd/supybot/plugins/suds/enums.py", line 17, in <module> from libottdadmin2.enums import EnumHelper ImportError: cannot import name 'EnumHelper' from 'libottdadmin2.enums' (/home/citizen/openttd/supybot/plugins/suds/libottdadmin2/enums.py) INFO 2020-05-16T19:02:13 Shutdown initiated. INFO 2020-05-16T19:02:13 Killing Driver objects. INFO 2020-05-16T19:02:13 Killing Irc objects. INFO 2020-05-16T19:02:13 Shutdown complete.

It seems Xaroth has refactored his enums.py.

Server dates before 1900 cause strftime() ValueErrors

For example:

ValueError: year=1870 is before 1900; the datetime strftime() methods require year >= 1900

Traceback:

irc_s3_1_a724429fde3a | Traceback (most recent call last):
irc_s3_1_a724429fde3a |   File "/usr/local/lib/python2.7/site-packages/supybot/callbacks.py", line 1320, in _callCommand
irc_s3_1_a724429fde3a |     self.callCommand(command, irc, msg, *args, **kwargs)
irc_s3_1_a724429fde3a |   File "/usr/local/lib/python2.7/site-packages/supybot/utils/python.py", line 90, in g
irc_s3_1_a724429fde3a |     f(self, *args, **kwargs)
irc_s3_1_a724429fde3a |   File "/usr/local/lib/python2.7/site-packages/supybot/callbacks.py", line 1286, in callCommand
irc_s3_1_a724429fde3a |     method(irc, msg, *args, **kwargs)
irc_s3_1_a724429fde3a |   File "/usr/local/lib/python2.7/site-packages/supybot/commands.py", line 1093, in newf
irc_s3_1_a724429fde3a |     f(self, irc, msg, args, *state.args, **state.kwargs)
irc_s3_1_a724429fde3a |   File "/var/supybot/data/plugins/suds/plugin.py", line 867, in date
irc_s3_1_a724429fde3a |     message = '%s' % conn.date.strftime('%b %d %Y')
irc_s3_1_a724429fde3a | ValueError: year=1870 is before 1900; the datetime strftime() methods require year >= 1900

Hopefully an easy enough fix. Will do ASAP

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.