Commit graph

3874 commits

Author SHA1 Message Date
Griatch
008566f358 Move gametime conversion factors to contrib and remove them from the settings file with the motivation that the gametime constats were always highly game specific and a remnant from another time. Reworked the gametime library and add server epoch building from vincent-lg's original PR. The gametime module now deals exclusively in seconds. 2017-02-12 19:16:56 +01:00
Griatch
2a48a4d645 Add contrib convert_gametime.py from the game-specific parts moved out of utils.gametime.py. 2017-02-12 19:16:56 +01:00
Griatch
6b89945cd3 Extract the deprecation checks from the evennia launcher into its own module deprecations.py as it grows. 2017-02-12 19:16:56 +01:00
Vincent Le Goff
59a5315c79 Add a setting to handle absolute game time (assuing standard a calendar)
The `@time` command now displays the game time epoch (can be set
in settings) and current game time (as a datetime).
2017-02-12 19:16:56 +01:00
Griatch
24adc5286b Minor refactoring of text. 2017-02-12 13:23:24 +01:00
TehomCD
be107814e5 Update CODING_STYLE.md
Making a note about changing to google-style docstrings in pycharm
2017-02-12 13:19:57 +01:00
Griatch
7453cf325a Make 'codefunc' a callable kwarg of EvEditor instead of the code boolean, to offer potential more flexibility if using EvEditor in other conditions. Add :! as a way to run code without saving it. Add support for using the /time switch also with the code editor when using . 2017-02-12 13:17:13 +01:00
Vincent Le Goff
88fc854b36 Change commands to :< and :> in EvEditor (code mode) 2017-02-12 13:17:13 +01:00
Vincent Le Goff
1697263fd7 Add the /edit swtich to the @py command 2017-02-12 13:17:13 +01:00
Vincent Le Goff
36b268ca81 Leading spaces in the EvEditor are always taken into account 2017-02-12 13:17:13 +01:00
Vincent Le Goff
362e03a3f8 Fix a bug in :+ and := commands in EvEditor 2017-02-12 13:17:13 +01:00
Vincent Le Goff
bcba90f27a Add the 'code' keyword to EvEditor, with basic handling of indentation 2017-02-12 13:17:13 +01:00
Griatch
fe89f2eb52 Minor typo-fix to coding style info. 2017-02-12 11:17:31 +01:00
BlauFeuer
6d24f82054 Update building.py
Update string to result
2017-02-12 11:06:20 +01:00
BlauFeuer
5ed5e77562 Update building.py
Properly call join with result
2017-02-12 11:06:20 +01:00
BlauFeuer
9a5b6969f3 Update building.py
Result string in loop appended to list
2017-02-12 11:06:20 +01:00
Griatch
61ffe5f9fa Rename ADDITIONA_ANSI_MAPPING to COLOR_ANSI_EXTRA_MAP to better match the settings naming scheme. 2017-02-12 10:53:50 +01:00
Tehom
982108da33 correct import 2017-02-12 10:53:50 +01:00
Tehom
f263ea2aaa Allow additional ansi mappings to be passed from settings for easier customization. 2017-02-12 10:53:50 +01:00
Griatch
80f7bb1cb5 Change command-default setting names to be more consistent with other settings; changed Command.msg_share to Command.msg_all_sessions to make it clearer what it does. 2017-02-12 10:35:30 +01:00
Tehom
fafe2e779e Added comments to the individual settings. 2017-02-12 10:35:30 +01:00
Tehom
a54e511413 Made defaults drawn from settings file to allow them to be modified 2017-02-12 10:35:30 +01:00
Tehom
f538b65279 Create a command attribute to specify whether messages should be shared between sessions. 2017-02-12 10:35:30 +01:00
Simon Vermeersch
af7475c6b9 Cache non-existent attributes too to avoid querying for them more than
once.
2017-02-12 10:00:05 +01:00
Griatch
9103532498 Further change to ircstatus/ircbot privmsg who sorting. 2017-02-12 09:08:13 +01:00
Griatch
93e1d81490 Alphabetize irc2chan nicklist. 2017-02-12 08:58:26 +01:00
Griatch
171761949a Correctly handle erroneus #dbref input for ircstatus. 2017-02-12 08:49:05 +01:00
Griatch
e08cb2bb48 Allow argument 'who' to the new ircstatus command. 2017-02-12 02:08:32 +01:00
Griatch
721572ac4a Remove some debug output. 2017-02-12 01:57:58 +01:00
Griatch
63df95e4da Make the irc bot accept who command from the IRC side. 2017-02-12 01:55:34 +01:00
Griatch
65a4e507f7 Add the ircstatus command, which allows an Evennia-ide user to ping the status of the IRC bot connection, get list of IRC nicks and also (if having the right privilege) force-reconnect the bot if the connection has died. 2017-02-12 00:43:19 +01:00
Griatch
1d181d8259 Change new irc2chan command syntax to use :typeclass, which is more in line with how typeclass is provided in other commands using typeclass. Also add exception handling if trying to create the bot with a malformed typeclass. 2017-02-11 18:48:43 +01:00
Cloud_Keeper
9503b30a5e Adjusted text variable names through IRCbot message life cycle to match new practice. 2017-02-11 18:48:43 +01:00
Cloud_Keeper
6cea12de42 Adjusted documentation. 2017-02-11 18:45:56 +01:00
Tablet-PC\cloud
7d4929efec Adjust documentation. 2017-02-11 18:45:56 +01:00
Tablet-PC\cloud
089c24f56f @irc2chan now accepts alternative typeclasses for bots 2017-02-11 18:45:55 +01:00
Cloud_Keeper
d96509cb4e Default behaviour now working. 2017-02-11 18:45:55 +01:00
Cloud_Keeper
40d4f6d286 Kwargs now being passed to the bot successfully 2017-02-11 18:45:55 +01:00
Tablet-PC\cloud
8fc20a3056 Unsuccessfull attempts 2017-02-11 18:45:55 +01:00
Tablet-PC\cloud
1d7c369345 no message 2017-02-11 18:45:55 +01:00
Griatch
fe11cb9d03 Add to irc2chan id display. 2017-02-11 18:39:31 +01:00
Griatch
831b1567ae Resolve conflicts against master. 2017-02-11 18:17:04 +01:00
Griatch
91ffde5eaf Fix errors caused by the change of the get_and_merge_cmdset callsign. Makes unittests work correctly again. 2017-02-06 20:20:46 +01:00
Vincent Le Goff
53b0b0f9af Update the Command.get_help() method taking Evennia's policy into account 2017-02-06 20:20:46 +01:00
Vincent Le Goff
602b3408aa Add a method to customize the help message of a command 2017-02-06 20:20:46 +01:00
Griatch
dd516a290c Make sethelp edit also work without specifying a starting string. 2017-02-06 19:57:02 +01:00
Vincent Le Goff
7e7ca06530 Allow to create @help entries and edit the content directly 2017-02-06 19:57:02 +01:00
Vincent Le Goff
3998ed1069 Add the /edit switch to the @help command 2017-02-06 19:57:02 +01:00
Griatch
4d14625504 Add info about the call string to the log when reporting command errors. 2017-02-06 19:35:10 +01:00
Griatch
8254a24689 Change how the greyscale is displayed by the color command for more conformity with the rest. 2017-02-05 20:03:50 +01:00