Software /
code /
prosody
Comparison
plugins/mod_scansion_record.lua @ 12977:74b9e05af71e
plugins: Prefix module imports with prosody namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 24 Mar 2023 13:15:28 +0100 |
parent | 12110:b5b799a2a10c |
comparison
equal
deleted
inserted
replaced
12976:a187600ec7d6 | 12977:74b9e05af71e |
---|---|
1 local names = { "Romeo", "Juliet", "Mercutio", "Tybalt", "Benvolio" }; | 1 local names = { "Romeo", "Juliet", "Mercutio", "Tybalt", "Benvolio" }; |
2 local devices = { "", "phone", "laptop", "tablet", "toaster", "fridge", "shoe" }; | 2 local devices = { "", "phone", "laptop", "tablet", "toaster", "fridge", "shoe" }; |
3 local users = {}; | 3 local users = {}; |
4 | 4 |
5 local filters = require "util.filters"; | 5 local filters = require "prosody.util.filters"; |
6 local id = require "util.id"; | 6 local id = require "prosody.util.id"; |
7 local dt = require "util.datetime"; | 7 local dt = require "prosody.util.datetime"; |
8 local dm = require "util.datamanager"; | 8 local dm = require "prosody.util.datamanager"; |
9 local st = require "util.stanza"; | 9 local st = require "prosody.util.stanza"; |
10 | 10 |
11 local record_id = id.short():lower(); | 11 local record_id = id.short():lower(); |
12 local record_date = os.date("%Y%b%d"):lower(); | 12 local record_date = os.date("%Y%b%d"):lower(); |
13 local header_file = dm.getpath(record_id, "scansion", record_date, "scs", true); | 13 local header_file = dm.getpath(record_id, "scansion", record_date, "scs", true); |
14 local record_file = dm.getpath(record_id, "scansion", record_date, "log", true); | 14 local record_file = dm.getpath(record_id, "scansion", record_date, "log", true); |