chore: sane defaults & more removals of dead features

This commit is contained in:
pwgen2155 2024-03-21 19:47:58 +11:00
parent 7cba240eae
commit ca05497fa0
3 changed files with 16 additions and 23 deletions

View file

@ -11,13 +11,13 @@
#die
# Superuser that cannot be DELADMINed.
owner Animefield
owner YourNameHere
# Server name:port.
server irc.animefriends.moe:7000
# Bot's nickname
botnick IdleFriend
botnick ChaosFriend
# Bot's username
botuser Idle
@ -52,7 +52,7 @@ helpurl http://example.com/
admincommurl http://example.com/admincomms.txt
# URL where users can reach the online quest map, if available.
mapurl http://example.com/quest.php
mapurl http://example.com/quest
# Daemonize the bot. This will make the bot detach from the terminal
# and act as an independent server. If you are running this from a
@ -98,7 +98,7 @@ penquest 15
pennick 30
# Penalty for sending a message - this is per character!
penmessage 1
penmessage 0
# Penalty for leaving the channel.
penpart 200
@ -128,20 +128,20 @@ good_battle_pct 110
evil_battle_pct 90
# Kick/ban users who mention a URL within seconds of joining channel.
doban on
doban off
# Time after joining that users can mention a URL without being banned.
bannable_time 90s
# Minimum time between quests.
quest_interval_min 12h
quest_interval_min 6h
quest_interval_max 24h
# Minimum level that a player must be to quest.
quest_min_level 24
# Minimum login time in seconds that a player must have to quest.
quest_min_login 36000
quest_min_login 3600
# These are URL hosts which are okay to mention early in channel. Multiples are fine.
# okurl example.com
@ -193,12 +193,6 @@ dbfile ../site/game.sqlite3
# Filename for events file.
eventsfile events.txt
# Filename for quest file. Used by website.
questfilename questinfo.txt
# Game events are saved to this filename. Used by website.
modsfile modifiers.txt
# Logging output - format is log <log level> <path> <template>.
# Levels are CRITICAL, WARNING, INFO, DEBUG, and SPAMMY. The path is
# relative to the data directory. The template uses the python logger

View file

@ -39,7 +39,6 @@ def read_config(path: str) -> Dict[str, Any]:
"okurls": [],
"loggers": [],
"localaddr": None,
# Legacy idlerpg option
"debug": False,
# Non-idlerpg config needs defaults
"confpath": os.path.realpath(path),
@ -49,14 +48,14 @@ def read_config(path: str) -> Dict[str, Any]:
"allylvlstep": 1.16,
"allymaxexplvl": 60,
"backupdir": ".dbbackup",
"daemonize": True,
"daemonize": False,
"loglevel": "DEBUG",
"throttle": True,
"throttle_rate": 4,
"throttle_period": 1,
"throttle_rate": 5,
"throttle_period": 10,
"penquest": 15,
"pennick": 30,
"penmessage": 1,
"penmessage": 0,
"penpart": 200,
"penkick": 250,
"penquit": 20,
@ -67,10 +66,10 @@ def read_config(path: str) -> Dict[str, Any]:
"max_name_len": 16,
"max_class_len": 30,
"message_wrap_len": 400,
"quest_interval_min": 12*3600,
"quest_interval_min": 6*3600,
"quest_interval_max": 24*3600,
"quest_min_level": 24,
"quest_min_login": 36000,
"quest_min_login": 3600,
"color": False,
"namecolor": "cyan",
"durationcolor": "green",

View file

@ -51,13 +51,13 @@
<td>Quest failures:</td><td>{{player.penquest|duration}}</td>
</tr>
</tbody></table>
<p>Total penalties: {{total_penalties|duration}}</p>
<p>Total penalties: {{ total_penalties|duration }}</p>
</div><div class="contentbox">
<h2>Items</h2>
<ul>
{% for item in player.item_set.all|dictsort:"slot" %}
<li>{{item.slot}}: Level {{ item.level }} {{item.name}}</li>
<li>{{ item.slot }}: Level {{ item.level }} {{ item.name }}</li>
{% endfor %}
</ul>
<p>Total item level: {{ total_items }}</p>
@ -66,7 +66,7 @@
<h2>Allies</h2>
<ul>
{% for ally in player.ally_set.all|dictsort:"slot" %}
<li>{{ally.slot}}: level {{ ally.level }} {{ally.fullclass}}, Next level in {{ally.nextlvl|duration}}.</li>
<li>{{ally.slot}}: level {{ally.level}} {{ally.fullclass}}, Next level in {{ally.nextlvl|duration}}.</li>
{% endfor %}
</ul>
</div><div class="contentbox">