This file contains 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
/** | |
* Zoekt de namen die horen bij de achtergrondkleuren | |
* | |
* @param vakCellen De cellen met de achtergrondkleur van de personen waarvan je de naam wil | |
* @param namenRange Een range cellen met als values de namen van de personen en als achtergrondkleur de achtergrondkleur van die personen | |
* @return De nam van de person die overeenkomen met de achtergrondkleur | |
* @customfunction | |
*/ | |
function PERSONEN(vakCellen,namenRange) { | |
var activeRange = SpreadsheetApp.getActiveRange(); |
This file contains 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
// ID of the calendar, can be found in sharing settings of the calendar | |
// TODO: Dit is momenteel nog het ID van de Hagarkalender, updaten naar de praesidiumkalender aub! | |
var calendarID = "[email protected]" | |
// Input data from the sheet with name "Blad3" | |
let planning = SpreadsheetApp.getActive().getSheetByName('Blad3') | |
// Get cell values as strings in 2D array format | |
let eventsData = planning.getDataRange().getValues() | |
// Column name shortcuts, their index get determined in setRowIndices based on the column header |
This file contains 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
# Plak hieronder tussen de aanhalingstekens de namen van de stuvers waarvan je de emailadressen wil hebben (geplitst door ""; "") | |
input = "Tim Kachetrnaam; vacant; Aude Gachternaam; Xynthia Fachternaam;" | |
# Maak een lijst van alle namen | |
namen = input.split("; ") | |
# Output is een lijst die uiteindelijk alle emailadressen gaat bevatten | |
output = set() | |
# Ga iedere stuver in de lijst af |
This file contains 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
// ID of the calendar, can be found in sharing settings of the calendar | |
var calendarID = "[email protected]" | |
// Input data from the sheet with name "Final Planning" | |
let planning = SpreadsheetApp.getActive().getSheetByName('Final Planning') | |
// Get cell values as strings in 2D array format | |
let eventsData = planning.getDataRange().getValues() | |
// Column name shortcuts, their index get determined in setRowIndices based on the column header |
This file contains 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 datetime import datetime | |
from apscheduler.schedulers.asyncio import AsyncIOScheduler | |
from discord.ext import commands | |
discord_bot_token = "dQw4w9WgXcQdQw4w9WgXcQdQ.dQw4w9.dQw4w9WgX-dQw4w9WgXcQdQw4w9" | |
bot = commands.Bot(command_prefix="-") | |
@bot.event |