Skip to content
This repository has been archived by the owner on Jan 31, 2021. It is now read-only.

Commit

Permalink
Rename to Rando Cardrissian
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyissillyyy committed Aug 18, 2018
1 parent 3f2ed8e commit b42f12a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Cards Against Humanity
[![Build Status](https://travis-ci.org/dragonfire535/discord-cards-against-humanity.svg?branch=master)](https://travis-ci.org/dragonfire535/discord-cards-against-humanity)
# Rando Cardrissian
[![Build Status](https://travis-ci.org/dragonfire535/rando-cardrissian.svg?branch=master)](https://travis-ci.org/dragonfire535/rando-cardrissian)
[![Discord Server](https://discordapp.com/api/guilds/252317073814978561/embed.png)](https://discord.gg/sbMe32W)
[![Donate on Patreon](https://img.shields.io/badge/patreon-donate-orange.svg)](https://www.patreon.com/dragonfire535)
[![Donate on PayPal](https://img.shields.io/badge/paypal-donate-blue.svg)](https://www.paypal.me/dragonfire535)

> This bot is not available for invite.
Cards Against Humanity is a Discord bot coded in JavaScript with
Rando Cardrissian is a Discord bot coded in JavaScript with
[discord.js](https://discord.js.org/) using the
[Akairo](https://github.com/1Computer1/discord-akairo) command framework. The
primary feature is Cards Against Humanity, but Apples to Apples is also available.
Expand Down
6 changes: 3 additions & 3 deletions CAH.js → Rando.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { CAH_TOKEN, CAH_PREFIX, OWNERS, INVITE } = process.env;
const { RANDO_TOKEN, RANDO_PREFIX, OWNERS, INVITE } = process.env;
const Client = require('./structures/Client');
const client = new Client({
prefix: CAH_PREFIX.split('||'),
prefix: RANDO_PREFIX.split('||'),
ownerID: OWNERS.split(','),
disableEveryone: true,
disabledEvents: ['TYPING_START']
Expand Down Expand Up @@ -37,7 +37,7 @@ client.commandHandler.on('error', (err, msg) => {
`).catch(() => null);
});

client.login(CAH_TOKEN);
client.login(RANDO_TOKEN);

process.on('unhandledRejection', err => {
console.error('[FATAL] Unhandled Promise Rejection.', err);
Expand Down
8 changes: 4 additions & 4 deletions commands/util/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { Command } = require('discord-akairo');
const { MessageEmbed } = require('discord.js');
const request = require('node-superfetch');
const { shorten, base64 } = require('../../util/Util');
const { GITHUB_USERNAME, GITHUB_PASSWORD, CAH_GITHUB_REPO_USERNAME, CAH_GITHUB_REPO_NAME } = process.env;
const { GITHUB_USERNAME, GITHUB_PASSWORD, RANDO_GITHUB_REPO_USERNAME, RANDO_GITHUB_REPO_NAME } = process.env;

module.exports = class ChangelogCommand extends Command {
constructor() {
Expand All @@ -15,13 +15,13 @@ module.exports = class ChangelogCommand extends Command {

async exec(msg) {
const { body } = await request
.get(`https://api.github.com/repos/${CAH_GITHUB_REPO_USERNAME}/${CAH_GITHUB_REPO_NAME}/commits`)
.get(`https://api.github.com/repos/${RANDO_GITHUB_REPO_USERNAME}/${RANDO_GITHUB_REPO_NAME}/commits`)
.set({ Authorization: `Basic ${base64(`${GITHUB_USERNAME}:${GITHUB_PASSWORD}`)}` });
const commits = body.slice(0, 10);
const embed = new MessageEmbed()
.setTitle(`[${CAH_GITHUB_REPO_NAME}:master] Latest 10 commits`)
.setTitle(`[${RANDO_GITHUB_REPO_NAME}:master] Latest 10 commits`)
.setColor(0x7289DA)
.setURL(`https://github.com/${CAH_GITHUB_REPO_USERNAME}/${CAH_GITHUB_REPO_NAME}/commits/master`)
.setURL(`https://github.com/${RANDO_GITHUB_REPO_USERNAME}/${RANDO_GITHUB_REPO_NAME}/commits/master`)
.setDescription(commits.map(commit => {
const hash = `[\`${commit.sha.slice(0, 7)}\`](${commit.html_url})`;
return `${hash} ${shorten(commit.commit.message.split('\n')[0], 50)} - ${commit.author.login}`;
Expand Down
4 changes: 2 additions & 2 deletions commands/util/invite.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { Command } = require('discord-akairo');
const { stripIndents } = require('common-tags');
const { INVITE, CAH_GITHUB_REPO_NAME, CAH_GITHUB_REPO_USERNAME } = process.env;
const { INVITE, RANDO_GITHUB_REPO_NAME, RANDO_GITHUB_REPO_USERNAME } = process.env;

module.exports = class InviteCommand extends Command {
constructor() {
Expand All @@ -17,7 +17,7 @@ module.exports = class InviteCommand extends Command {
${INVITE || 'Coming soon...'}
You can also self-host me if you prefer:
<https://github.com/${CAH_GITHUB_REPO_USERNAME}/${CAH_GITHUB_REPO_NAME}>
<https://github.com/${RANDO_GITHUB_REPO_USERNAME}/${RANDO_GITHUB_REPO_NAME}>
`);
}
};
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "cards-against-humanity",
"name": "rando-cardrissian",
"version": "2.2.0",
"description": "Cards Against Humanity, but for Discord!",
"main": "CAH.js",
"main": "Rando.js",
"scripts": {
"test": "npm run lint",
"lint": "eslint . --ext .js --ext .json",
"start": "node CAH.js"
"start": "node Rando.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/dragonfire535/discord-cards-against-humanity.git"
"url": "git+https://github.com/dragonfire535/rando-cardrissian.git"
},
"keywords": [
"bot",
Expand All @@ -24,9 +24,9 @@
"author": "dragonfire535 <[email protected]>",
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/dragonfire535/discord-cards-against-humanity/issues"
"url": "https://github.com/dragonfire535/rando-cardrissian/issues"
},
"homepage": "https://github.com/dragonfire535/discord-cards-against-humanity#readme",
"homepage": "https://github.com/dragonfire535/rando-cardrissian#readme",
"engines": {
"node": ">=10.1.0"
},
Expand Down

0 comments on commit b42f12a

Please sign in to comment.