public async Task BlindTest(string name = "blindtest") { try { ISocketMessageChannel channel = Context.Channel; await ReplyAsync("Génération du BlindTests! :fire: "); Qcm bigQcm = new Qcm(); qcmList.Add(bigQcm); bigQcm.name = name; bigQcm.AddQuestion(QType.audio); bigQcm.AddQuestion(QType.audio); bigQcm.AddQuestion(QType.audio); bigQcm.AddQuestion(QType.audio); bigQcm.AddQuestion(QType.audio); bigQcm.AddQuestion(QType.audio); bigQcm.AddQuestion(QType.audio); await ReplyAsync("Questions ajoutées avec succès"); } catch { await ReplyAsync("Erreur lors de la création du QCM"); } //await Context.Guild.CreateTextChannelAsync(bigQcm.name); //await bigQcm.Preview(channel); await StartQCM(name); }
public async Task QcmSampleSingleIMG(string name = "img") { ISocketMessageChannel channel = Context.Channel; await ReplyAsync("Lancement du QCM Image! :fire: "); Qcm bigQcm = new Qcm(); qcmList.Add(bigQcm); bigQcm.name = name; bigQcm.AddQuestion(QType.image, true); bigQcm.AddQuestion(QType.image, true); bigQcm.AddQuestion(QType.image, true); bigQcm.AddQuestion(QType.image, true); // Image simple try { await ReplyAsync("Questions ajoutées avec succès"); } catch { await ReplyAsync("Erreur lors de la création du QCM"); } //await Context.Guild.CreateTextChannelAsync(bigQcm.name); //await bigQcm.Preview(channel); }
public async Task BigQcm(string name = "a") { ISocketMessageChannel channel = Context.Channel; await ReplyAsync("Lancement du méga QCM! :fire: "); Qcm bigQcm = new Qcm(); qcmList.Add(bigQcm); bigQcm.name = name; // l'audio ne marche que si premiere question QUE bigQcm.AddQuestion(QType.text); bigQcm.AddQuestion(QType.text, false, Qcm.TextQuestion.DefaultContent); bigQcm.AddQuestion(QType.image); // Image multiple bigQcm.AddQuestion(QType.image, true); // Image simple try { await ReplyAsync("Questions ajoutées avec succès"); } catch { await ReplyAsync("Erreur lors de la création du QCM"); } //await Context.Guild.CreateTextChannelAsync(bigQcm.name); //await bigQcm.Preview(channel); }
public async Task BasicSampleQcm(string name = "text") { ISocketMessageChannel channel = Context.Channel; await ReplyAsync("Lancement du méga QCM! :fire: "); Qcm bigQcm = new Qcm(); qcmList.Add(bigQcm); bigQcm.name = name; for (int i = 0; i < 10; i++) { bigQcm.AddQuestion(QType.text, false, Qcm.TextQuestion.DefaultContent); } await ReplyAsync("Questions ajoutées avec succès"); }
public async Task MathSampleQcm(string name = "maths") { ISocketMessageChannel channel = Context.Channel; await ReplyAsync("Lancement du méga QCM! :fire: "); Qcm bigQcm = new Qcm(); qcmList.Add(bigQcm); bigQcm.name = name; for (int i = 0; i < 3; i++) { bigQcm.AddQuestion(QType.text); } await ReplyAsync("Questions ajoutées avec succès"); }