blob: 7f4175af7b22c5939e2793dbcca7b594ef240684 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
from django.core.validators import RegexValidator
from django.db import models
class DocumentationLink(models.Model):
"""A documentation link used by the `!docs` command of the bot."""
package = models.CharField(primary_key=True, max_length=50)
base_url = models.URLField()
inventory_url = models.URLField()
class OffTopicChannelName(models.Model):
name = models.CharField(
primary_key=True,
max_length=96,
validators=(RegexValidator(regex=r'^[a-z0-9-]+$'),)
)
class SnakeName(models.Model):
"""A snake name used by the bot's snake cog."""
name = models.CharField(primary_key=True, max_length=100)
scientific = models.CharField(max_length=150)
|