Compare commits
2 Commits
0d691ff431
...
56b325ca10
| Author | SHA1 | Date | |
|---|---|---|---|
| 56b325ca10 | |||
| b02efb06dd |
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,6 +5,7 @@ tags/
|
||||
*.egg-info/
|
||||
.tox/
|
||||
.coverage
|
||||
staticfiles/
|
||||
dr.botzo.data
|
||||
dr.botzo.cfg
|
||||
localsettings.py
|
||||
|
||||
@ -54,6 +54,7 @@ INSTALLED_APPS = [
|
||||
|
||||
MIDDLEWARE = [
|
||||
'django.middleware.security.SecurityMiddleware',
|
||||
'whitenoise.middleware.WhiteNoiseMiddleware',
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
@ -165,6 +166,9 @@ BOOTSTRAP3 = {
|
||||
'javascript_in_head': True,
|
||||
}
|
||||
|
||||
# whitenoise
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
|
||||
|
||||
###############
|
||||
# web options #
|
||||
###############
|
||||
|
||||
@ -158,7 +158,7 @@ class DrReactor(irc.client.Reactor):
|
||||
|
||||
# ignore the first word, a nick, if the speaker is the bridge
|
||||
try:
|
||||
channel = IrcChannel.objects.get(name=sent_location)
|
||||
channel = IrcChannel.objects.get(server=connection.server_config, name=sent_location)
|
||||
if sender_nick == channel.discord_bridge:
|
||||
short_what = ' '.join(what.split(' ')[1:])
|
||||
real_source = re.sub(r'^<(\S+)> .*', r'\1!user@discord-bridge', what)
|
||||
|
||||
@ -12,7 +12,7 @@ authors = [
|
||||
]
|
||||
requires-python = ">=3.10,<3.12"
|
||||
dependencies = ["Django<5.1", "django-bootstrap3", "django-extensions", "djangorestframework", "irc<20.5.0", "numexpr",
|
||||
"parsedatetime", "ply", "python-dateutil", "python-mpd2", "pytz", "requests", "zalgo-text"]
|
||||
"parsedatetime", "ply", "python-dateutil", "python-mpd2", "pytz", "requests", "whitenoise", "zalgo-text"]
|
||||
dynamic = ["version"]
|
||||
classifiers = [
|
||||
"Framework :: Django",
|
||||
|
||||
@ -283,6 +283,8 @@ virtualenv==20.27.1
|
||||
# via tox
|
||||
wheel==0.44.0
|
||||
# via pip-tools
|
||||
whitenoise==6.11.0
|
||||
# via dr.botzo (pyproject.toml)
|
||||
zalgo-text==0.6
|
||||
# via dr.botzo (pyproject.toml)
|
||||
|
||||
|
||||
@ -83,5 +83,7 @@ tempora==5.7.0
|
||||
# jaraco-logging
|
||||
urllib3==2.2.3
|
||||
# via requests
|
||||
whitenoise==6.11.0
|
||||
# via dr.botzo (pyproject.toml)
|
||||
zalgo-text==0.6
|
||||
# via dr.botzo (pyproject.toml)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user