This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### | |
| Credit to Santi/SnooHelper, PCJohanthan, Artumis, GolenSights, and others I will add once I remember. | |
| TODO: Add math sql for sentiment output on a lot of things, test yaml config, redo traffic so it grabs for each subreddit, debating whether or not to split it up so each sub has their own database, build more alert tools for things like alerts if a user has more than x reports in modqueue for the same post, oh and finish the stupid lexicon for UkrianianConflict | |
| ### | |
| import dbstufflogger | |
| from risingWatch import * | |
| from sewTraffic import traffic | |
| from LowComments import * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from collections import namedtuple | |
| import logmaker | |
| import datetime | |
| import sqlite3 | |
| import time | |
| import lnm | |
| import re | |
| START = time.time() | |
| TIMESTAMP = datetime.datetime.fromtimestamp(int(START)).strftime('%m/%d/%Y %H:%M:%S') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| What is something you learned in the last week? | |
| Do you crack your knuckles? | |
| Do you have any pets? You can share pictures of them, if you want. | |
| Do you play Pokemon Go? | |
| What is your favourite punctuation mark? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import praw | |
| import time | |
| import sys | |
| import random | |
| #description of your bot | |
| r = praw.Reddit(user_agent='') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .app a { | |
| color: #5294E2 | |
| } | |
| .titlebar { | |
| height: 5px | |
| } | |
| .guilds-wrapper { | |
| background: #2a2f38 | |
| } | |
| .guilds-wrapper .guilds .guild+.guild { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import praw | |
| import config #has my reddit oauth info stuff | |
| import string | |
| import json | |
| import traceback | |
| import sqlite3 | |
| MODLIST = {'10thTARDIS', 'maximumhel', 'Skangryph', 'girlietrex', 'ri0tnrrd', 'SmileyFace', 'Mumbah_', 'Luminous_Nox'} | |
| MAX = 1000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function calcEffec(input,numbers) { | |
| for (var i = 0; i<input.length; i++) | |
| { | |
| for (var j = 1; j<numbers[i]; j++) | |
| { | |
| input.push(input[i]); | |
| } | |
| } | |
| input.sort(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Retrieves all the rows in the active spreadsheet that contain data and logs the | |
| * values for each row. | |
| * For more information on using the Spreadsheet API, see | |
| * https://developers.google.com/apps-script/service_spreadsheet | |
| */ | |
| function readRows() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var rows = sheet.getDataRange(); | |
| var numRows = rows.getNumRows(); |