Skip to content

Instantly share code, notes, and snippets.

View acollierr17's full-sized avatar
👀
but is it responsive?

Anthony Collier acollierr17

👀
but is it responsive?
View GitHub Profile
@acollierr17
acollierr17 / suggest.js
Created July 28, 2020 07:51
First ever commit of the Suggestions bot suggest command!
const Discord = require('discord.js');
const config = require('../config.json');
let ORANGE = config.embedOrange;
exports.run = (client, message, args) => {
let sUser = message.member;
let suggestionsChannel = message.guild.channels.find('name', 'suggestions');
if (!suggestionsChannel) return message.channel.send('A suggestions channel does not exist! Please create one or contact a server administrator.')
.then(message => {
@acollierr17
acollierr17 / suggestions_privacy_policy.md
Last active January 30, 2019 02:47 — forked from jagrosh/jagrosh_privacy_policy.md
Privacy Policy and Agreement for the Suggestions bot

Disclaimer

This document was inspired and forked from a publicly visible privacy policy by jagrosh. For the original version, click here.

Also, for reference below, the word "guild" also means "server" (ex. guild admin = server admin).

Privacy Policy

This document entails the privacy policy and agreement that you accept when adding the Suggestions#2602 (474051954998509571) bot to a guild, or as a member of such a guild. This also includes the website suggestionsbot.com and all of its subdomains. This document does not supersede the Developer Terms of Service.

@acollierr17
acollierr17 / app.js
Last active May 9, 2021 22:16
Select a random user from a collection of users who reacted to the first reaction of a message via a given message ID. Example code is used for giveaways.
// THIS IS FOR
const { Client } = require('discord.js');
const client = new Client();
const g_channel_id = ''; // This should be a String and the channel ID of the giveaways channel
const g_message_id = ''; // This should be a String and the message ID of the givaway message
const winner_amount = ''; // This shiuld be a Number and it represents how many winners you wish to choose
client.on('ready', () => {
console.log('Bot is ready!');
@acollierr17
acollierr17 / app.js
Last active November 12, 2018 08:06
Troll your friend! Every time they delete a message, the bot will repost their message in the channel.
const { Client } = require('discord.js');
const client = new Client({ disableEveryone: true });
const yourFriend = '158063324699951104'; // User ID for the friend you want to troll
client.on('ready', () => console.log(`Logged in as ${client.user.tag} (${client.user.id}) in ${client.guilds.size} server(s).`));
client.on('message', async message => {
@acollierr17
acollierr17 / app.js
Last active July 3, 2021 15:32
Discord.js Rock, Paper, Scissors (Basic command handler included)
const { Client } = require('discord.js');
const client = new Client();
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});
const prefix = '!';
client.on('message', message => {
@acollierr17
acollierr17 / yt2d.md
Last active February 7, 2023 00:09 — forked from Godimas/yt2d.md
YouTube to Discord via IFTTT (Updated 2020)

Navigate to: Twitter via IFTTT, Twitter via Zapier, Reddit or GitHub.

YouTube to Discord via IFTTT and webhook

You just posted a video. You want everyone on your server to know this, eh?

Step 1 - Register on IFTTT

  1. Go to the IFTTT website and create an account (if you don't already have one).

Step 2 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send YouTube videos.
@acollierr17
acollierr17 / aServerStats
Last active May 9, 2019 22:38
Server Stats! Set voice channels will update whenever a new member joins/leaves the guild. Make sure to update the guild and channel IDs in the serverStats.js file. Also make sure the channels for each stat is created and you have those channel IDs in the serverStats.js file.
Posts server stats to specific voice channels!