Browse Source

Update bans.py

tags/1.7
153 2 years ago
committed by GitHub
parent
commit
2de8b664ce
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 8 deletions
  1. +9
    -8
      bans.py

+ 9
- 8
bans.py View File

@@ -1,13 +1,14 @@

#!/usr/bin/env python3

bans = {
"36.250":"spam",
"36.248":"spam",
"46.16": "spam",
"88.198.48":"nazi",
"62.210":"spam"
}
with open("bans.txt", "r") as ban:
ban = ban.read().splitlines()

bans = {}
for b in ban:
b = b.split(" ")
b[1] = " ".join(b[1:])
bans[b[0]] = b[1]


def is_banned(ip):
ip = str(ip)


Loading…
Cancel
Save