mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Change to xiaodev
This commit is contained in:
@@ -30,7 +30,7 @@ module.exports = class TimeCommand extends Command {
|
||||
run(msg, { timeZone }) {
|
||||
const time = moment().tz(timeZone).format('h:mm A');
|
||||
const location = timeZone.split('/');
|
||||
const word = location[0] === 'Lily' ? 'for' : 'in';
|
||||
const word = location[0] === 'Dev' ? 'for my' : 'in';
|
||||
const main = firstUpperCase(location[0], /[_ ]/);
|
||||
const sub = location[1] ? firstUpperCase(location[1], /[_ ]/) : null;
|
||||
const subMain = location[2] ? firstUpperCase(location[2], /[_ ]/) : null;
|
||||
|
||||
@@ -5,7 +5,7 @@ const cheerio = require('cheerio');
|
||||
const { stripIndents } = require('common-tags');
|
||||
const { cleanAnilistHTML, embedURL } = require('../../util/Util');
|
||||
const logos = require('../../assets/json/logos');
|
||||
const ANILIST_USERNAME = process.env.ANILIST_USERNAME || 'lilyissillyyy';
|
||||
const ANILIST_USERNAME = process.env.ANILIST_USERNAME || 'AniList';
|
||||
const searchGraphQL = stripIndents`
|
||||
query ($search: String, $type: MediaType, $isAdult: Boolean) {
|
||||
anime: Page (perPage: 10) {
|
||||
|
||||
@@ -5,7 +5,7 @@ const cheerio = require('cheerio');
|
||||
const { stripIndents } = require('common-tags');
|
||||
const { cleanAnilistHTML, embedURL } = require('../../util/Util');
|
||||
const logos = require('../../assets/json/logos');
|
||||
const ANILIST_USERNAME = process.env.ANILIST_USERNAME || 'lilyissillyyy';
|
||||
const ANILIST_USERNAME = process.env.ANILIST_USERNAME || 'AniList';
|
||||
const searchGraphQL = stripIndents`
|
||||
query ($search: String, $type: MediaType, $isAdult: Boolean) {
|
||||
anime: Page (perPage: 10) {
|
||||
|
||||
@@ -3,7 +3,7 @@ const { EmbedBuilder } = require('discord.js');
|
||||
const request = require('node-superfetch');
|
||||
const { shorten, embedURL } = require('../../util/Util');
|
||||
const { GITHUB_ACCESS_TOKEN } = process.env;
|
||||
const XIAO_GITHUB_REPO_USERNAME = process.env.XIAO_GITHUB_REPO_USERNAME || 'lilyissillyyy';
|
||||
const XIAO_GITHUB_REPO_USERNAME = process.env.XIAO_GITHUB_REPO_USERNAME || 'xiaobotdev';
|
||||
const XIAO_GITHUB_REPO_NAME = process.env.XIAO_GITHUB_REPO_NAME || 'xiao';
|
||||
|
||||
module.exports = class ChangelogCommand extends Command {
|
||||
|
||||
@@ -26,7 +26,7 @@ module.exports = class GenerateCreditCommand extends Command {
|
||||
if (!commands.size) return null;
|
||||
return commands.map(c => {
|
||||
const credits = c.credit
|
||||
.filter(cred => cred.name !== 'Lily is Silly')
|
||||
.filter(cred => cred.name !== 'Xiao Dev')
|
||||
.map(cred => {
|
||||
const reason = cred.reasonURL ? embedURL(cred.reason, cred.reasonURL) : cred.reason;
|
||||
return `${embedURL(cred.name, cred.url)} (${reason})`;
|
||||
|
||||
Reference in New Issue
Block a user