aboutsummaryrefslogtreecommitdiff
path: root/modules/grils
diff options
context:
space:
mode:
Diffstat (limited to 'modules/grils')
-rw-r--r--modules/grils/grils.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/grils/grils.go b/modules/grils/grils.go
index fa1f21c..41783a7 100644
--- a/modules/grils/grils.go
+++ b/modules/grils/grils.go
@@ -3,6 +3,7 @@ package grils
3import ( 3import (
4 "fagott.pw/charakterin" 4 "fagott.pw/charakterin"
5 "fagott.pw/grilist/grilist" 5 "fagott.pw/grilist/grilist"
6 "time"
6) 7)
7 8
8type GrilsModule struct { 9type GrilsModule struct {
@@ -28,6 +29,18 @@ func (m *GrilsModule) ProvideDashboardData(user *charakterin.User) []grilist.Das
28 return []grilist.DashboardCategory{} 29 return []grilist.DashboardCategory{}
29} 30}
30 31
32func (m *GrilsModule) FromID(id int) *Gril {
33 return &Gril{
34 ID: id,
35 KanjiName: "藤林 杏",
36 RomajiName: "Kyou Fujibayashi",
37 OtherNames: []string{"ふじばやし きょう"},
38 Age: 17,
39 Birthday: time.Now(),
40 Tags: []string{"tsundere", "hair intakes", "hair ribbon", "school uniform", "school crest"},
41 }
42}
43
31func New() *GrilsModule { 44func New() *GrilsModule {
32 return &GrilsModule{} 45 return &GrilsModule{}
33} 46}