#sir-lancebot-playground
1 messages ยท Page 186 of 1
AdventOfCode
.adventofcode
All of the Advent of Code commands.
AprilFoolVideos
.fool
Get a random April Fools' video from Youtube.
AvatarModify
.8bitify
Pixelates your avatar and changes the palette to an 8bit one.
.avatar_modify
Groups all of the pfp modifying commands to allow a single concurrency limit.
.avatareasterify [colours...]
This "Easterifies" the user's avatar.
.mosaic [squares=16]
Splits your avatar into x squares, randomizes them and stitches them back into a new image!
.prideavatar [option=lgbt] [pixels=64]
This surrounds an avatar with a border of a specified LGBT flag.
.spookyavatar [member]
Spookify an user's avatar.
.mosaic [squares=16]
Your input was invalid: Converting to "int" failed for parameter "squares".
Usage:.avatar_modify mosaic [squares=16]
Your input was invalid: Member "mosaic" not found.
Usage:.avatar_modify spookyavatar [member]
.eggquiz
You have 30 seconds to vote.
๐ฆ -> Dark
๐ง -> White
๐จ -> Milk
Nobody got it right...
VOTES:
๐ฆ - 0 votes (0%)
๐ง - 0 votes (0%)
๐จ - 1 vote (100%)
.quiz leaderboard
CookieTheCat#1756: 2800
Aboo Minister#8971: 1000
.quiz python 30
This game consists of 30 questions.
**Rules: **
- Only enclose your answer in backticks when the question tells you to.
- If the question specifies an answer format, follow it or else it won't be accepted.
- You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
- No cheating and have fun!
Category: python
When was Python first released?
1991
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 29
Aboo Minister#8971: 100
What attribute of a closure contains the value closed over?
cell_contents
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 28
Aboo Minister#8971: 200
What exception, other than StopIteration, can you raise from a __getitem__ dunder to indicate to an iterator that it should stop?
indexerror
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 27
Aboo Minister#8971: 300
What is the official name of this operator :=, introduced in 3.8?
assignmetn-expression opertaro
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 26
Aboo Minister#8971: 400
Name the only non-dunder method of the builtin slice object.
indices
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 25
Aboo Minister#8971: 500
What is a package that doesn't have a __init__ file called?
namespace package
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 24
Aboo Minister#8971: 600
Is everything an instance of the object class (y/n)?
y
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 23
Aboo Minister#8971: 700
What type does the & operator return when given 2 dict_keys objects?
set
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 22
Aboo Minister#8971: 800
Where does the name Python come from?
monty python
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 21
Aboo Minister#8971: 900
Which of these is a subclass of Exception?
(NotImplemented, asyncio.CancelledError, StopIteration)
Stopiteratoin
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 20
Aboo Minister#8971: 1000
Which of these is not a generator method?
(next, send, throw, close)
next
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 19
Aboo Minister#8971: 1100
What is the garbage collection strategy used by cpython to collect everything but reference cycles?
refcounting
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 18
Aboo Minister#8971: 1200
Is the __aiter__ method async (y/n)?
n
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 17
Aboo Minister#8971: 1300
What type is the attribute of a frame object that contains the current local variables?
dict
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 16
Aboo Minister#8971: 1400
Which standard library module is designed for making simple parsers for languages like shell, as well as safe quoting of strings for use in a shell?
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 15
Aboo Minister#8971: 1500
Which attribute is the documentation string of a function/method/class stored in (answer should be enclosed in backticks!)?
__doc__
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 14
Aboo Minister#8971: 1600
Which one of these protocols/abstract base classes does the builtin range object NOT implement?
(Sequence, Iterable, Generator)
Generator
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 13
Aboo Minister#8971: 1700
Which module when imported opens up a web browser tab that points to the classic 353 XKCD comic mentioning Python?
antgravity
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 12
Aboo Minister#8971: 1800
What dunder method is used by the tuple constructor to optimize converting an iterator to a tuple (answer should be enclosed in backticks!)?
20s left!
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 11
Aboo Minister#8971: 1800
Can you pickle a running list_iterator (y/n)?
20s left!
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 10
Aboo Minister#8971: 1800
How is infinity represented in Python?
20s left!
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 9
Aboo Minister#8971: 1800
What name does a lambda function have?
20s left!
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 8
Aboo Minister#8971: 1800
How does one call a class who defines the behavior of their instance classes?
20s left!
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 7
Aboo Minister#8971: 1800
What decorator is used to allow a protocol to be checked at runtime?
20s left!
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 6
Aboo Minister#8971: 1800
Which of these characters is valid python outside of string literals in some context?
(@, $, ?)
20s left!
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 5
Aboo Minister#8971: 1800
Which year was Python 3 released?
20s left!
@rugged pike got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 4
Aboo Minister#8971: 1875
Does numbers.Rational include the builtin object float (y/n)
n
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 3
Aboo Minister#8971: 1975
What file extension is used by the site module to determine what to do at every start?
.pth
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
Aboo Minister#8971: 2075
Which protocol is used to pass self to methods when accessed on classes?
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 1
Aboo Minister#8971: 2175
Which file contains all special site builtins, such as help or credits?
_sitebuilitisn
@rugged pike got the correct answer :tada: 100 points!
Remaining questions: 0
Aboo Minister#8971: 2275
The round has ended.
Congratulations @rugged pike :tada: You have won this quiz game with a grand total of 2275 points!
.quiz leaderboard
Aboo Minister#8971: 3275
CookieTheCat#1756: 2800
bam
.quiz leaderboard
Aboo Minister#8971: 3275
CookieTheCat#1756: 2800
.quiz cs 10
This game consists of 10 questions.
**Rules: **
- Only enclose your answer in backticks when the question tells you to.
- If the question specifies an answer format, follow it or else it won't be accepted.
- You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
- No cheating and have fun!
Category: cs
What does one call the optimization technique used in CPU design that attempts to guess the outcome of a conditional operation and prepare for the most likely result?
branch prediction
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 9
Aboo Minister#8971: 100
In quantum computing, what is the full name of "qubit"?
quantum binary digit
@rugged pike got the correct answer :tada: 50 points!
Let's move to the next question.
Remaining questions: 8
Aboo Minister#8971: 150
In neural networks, _______________ is an algorithm for supervised learning using gradient descent.
20s left!
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 7
Aboo Minister#8971: 150
What is an interpreter capable of interpreting itself called?
metainterrpeter
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 6
Aboo Minister#8971: 250
What is the most popular protocol (as of 2021) that handles communication between email servers?
smtp
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 5
Aboo Minister#8971: 350
Which newline sequence does HTTP use?
\r\n
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 4
Aboo Minister#8971: 450
What does SASS stand for?
syactically awesokme syteleshets
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 3
Aboo Minister#8971: 550
What does HTML stand for?
hypertext markup language
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
Aboo Minister#8971: 650
How many possible public IPv6 addresses are there (answer in 2^n)?
2^136
20s left!
10s left!
@rugged pike got the correct answer :tada: 50 points!
Let's move to the next question.
Remaining questions: 1
Aboo Minister#8971: 700
What does the "a" represent in a HSLA color value?
alpha
@rugged pike got the correct answer :tada: 100 points!
Remaining questions: 0
Aboo Minister#8971: 800
The round has ended.
Congratulations @rugged pike :tada: You have won this quiz game with a grand total of 800 points!
yay
.help
AdventOfCode
.adventofcode
All of the Advent of Code commands.
AprilFoolVideos
.fool
Get a random April Fools' video from Youtube.
AvatarModify
.8bitify
Pixelates your avatar and changes the palette to an 8bit one.
.avatar_modify
Groups all of the pfp modifying commands to allow a single concurrency limit.
.avatareasterify [colours...]
This "Easterifies" the user's avatar.
.mosaic [squares=16]
Splits your avatar into x squares, randomizes them and stitches them back into a new image!
.prideavatar [option=lgbt] [pixels=64]
This surrounds an avatar with a border of a specified LGBT flag.
.spookyavatar [member]
Spookify an user's avatar.
.quiz leaderboard
Aboo Minister#8971: 4075
CookieTheCat#1756: 2800
.quiz science
This game consists of 7 questions.
**Rules: **
- Only enclose your answer in backticks when the question tells you to.
- If the question specifies an answer format, follow it or else it won't be accepted.
- You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
- No cheating and have fun!
Category: science
About how many neurons are in the human brain?
(A. 1 billion, B. 10 billion, C. 100 billion, D. 300 billion)
C
@prime mirage got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 6
CookieTheCat#1756: 100
As of 2021, how many elements are there in the Periodic Table?
118
@prime mirage got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 5
CookieTheCat#1756: 200
Which particle is emitted during the beta decay of a radioactive element?
Electron
@prime mirage got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 4
CookieTheCat#1756: 300
How does one call the branch of physics that deals with the study of mechanical waves in gases, liquids, and solids including topics such as vibration, sound, ultrasound and infrasound
Acustics
@prime mirage got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 3
CookieTheCat#1756: 400
Who discovered the theories of relativity?
Einstein
@prime mirage got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
CookieTheCat#1756: 500
20s left!
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 1
CookieTheCat#1756: 500
What is the process by which green plants and certain other organisms transform light energy into chemical energy?
Photosynthesis
@prime mirage got the correct answer :tada: 100 points!
Remaining questions: 0
CookieTheCat#1756: 600
The round has ended.
Congratulations @prime mirage :tada: You have won this quiz game with a grand total of 600 points!
.ping
Gateway Latency: 108ms
.ping
Gateway Latency: 108ms
Gateway Latency: 115ms
Gateway Latency: 109ms
.quiz science
This game consists of 7 questions.
**Rules: **
- Only enclose your answer in backticks when the question tells you to.
- If the question specifies an answer format, follow it or else it won't be accepted.
- You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
- No cheating and have fun!
Category: science
The type of rock that is formed by the accumulation or deposition of mineral or organic particles at the Earth's surface, followed by cementation, is called...
Diamond
20s left!
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 6
No one has made it onto the leaderboard yet.
Which vascular tissue transports water and minerals from the roots to the rest of a plant?
20s left!
beans
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 5
No one has made it onto the leaderboard yet.
About how many neurons are in the human brain?
(A. 1 billion, B. 10 billion, C. 100 billion, D. 300 billion)
C
@wanton plinth got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 4
Pim#3520: 100
What is the force that causes objects to float in fluids called?
ez
20s left!
Density
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 3
Pim#3520: 100
close
What is the 7th planet of our Solar System?
20s left!
10s left!
idk
Better luck next time...
Let's move to the next question.
Remaining questions: 2
Pim#3520: 100
In particle physics, the hypothetical isolated elementary particle with only one magnetic pole is termed as...
magnetic monopole
@prime mirage got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 1
Pim#3520: 100
CookieTheCat#1756: 100
Which law states that the global entropy in a closed system can only increase?
ah well ofcourse
second law
@prime mirage got the correct answer :tada: 100 points!
Remaining questions: 0
CookieTheCat#1756: 200
Pim#3520: 100
The round has ended.
Congratulations @prime mirage :tada: You have won this quiz game with a grand total of 200 points!
- General
Test your general knowledge.
- Retro
Questions related to retro gaming.
- Math
General questions about mathematics ranging from grade 8 to grade 12.
- Science
Put your understanding of science to the test!
- Cs
A large variety of computer science questions.
- Python
Trivia on our amazing language, python!
.quiz python
This game consists of 7 questions.
**Rules: **
- Only enclose your answer in backticks when the question tells you to.
- If the question specifies an answer format, follow it or else it won't be accepted.
- You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
- No cheating and have fun!
Category: python
Is everything an instance of the object class (y/n)?
y
@prime mirage got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 6
CookieTheCat#1756: 100
Which of these is a subclass of Exception?
(NotImplemented, asyncio.CancelledError, StopIteration)
NotImplemented
20s left!
StopIteration
@wanton plinth got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 5
CookieTheCat#1756: 100
Pim#3520: 75
ez
Where does the name Python come from?
snake
Monty python
@prime mirage got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 4
CookieTheCat#1756: 200
Pim#3520: 75
Which year was Python 3 released?
2017
2008
2016
@prime mirage got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 3
CookieTheCat#1756: 300
Pim#3520: 75
What type does the & operator return when given 2 dict_keys objects?
set
@prime mirage got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
CookieTheCat#1756: 400
Pim#3520: 75
Is the __aiter__ method async (y/n)?
y
n
@wanton plinth got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 1
CookieTheCat#1756: 400
Pim#3520: 175
n
What name does a lambda function have?
<lambda>
@prime mirage got the correct answer :tada: 100 points!
Remaining questions: 0
CookieTheCat#1756: 500
Pim#3520: 175
The round has ended.
Congratulations @prime mirage :tada: You have won this quiz game with a grand total of 500 points!
.quiz leaderboard
CookieTheCat#1756: 4100
Aboo Minister#8971: 4075
Pim#3520: 275
.quiz
This game consists of 7 questions.
**Rules: **
- Only enclose your answer in backticks when the question tells you to.
- If the question specifies an answer format, follow it or else it won't be accepted.
- You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
- No cheating and have fun!
Category: cs
What is the mathematical formalism which functional programming was built on?
20s left!

10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 6
No one has made it onto the leaderboard yet.
How many possible public IPv6 addresses are there (answer in 2^n)?
20s left!

10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 5
No one has made it onto the leaderboard yet.
What is the most popular protocol (as of 2021) that handles communication between email servers?
Smtp
@daring swift got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 4
Peter parker#0001: 100
Which of these sorting algorithms is not stable?
(Counting sort, quick sort, insertion sort, tim sort, bubble sort)
Tim sort
20s left!
Counting sort
10s left!
@daring swift got the correct answer :tada: 50 points!
Let's move to the next question.
Remaining questions: 3
Peter parker#0001: 150
What are the components of digital devices that make up logic gates called?
Transistors
@daring swift got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
Peter parker#0001: 250
What does HTML stand for?
Hyper text markup language
@daring swift got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 1
Peter parker#0001: 350
What does one call the optimization technique used in CPU design that attempts to guess the outcome of a conditional operation and prepare for the most likely result?
20s left!
10s left!
No one answered correctly!
Remaining questions: 0
Peter parker#0001: 350
The round has ended.
Congratulations @daring swift :tada: You have won this quiz game with a grand total of 350 points!
.quiz leaderboard
CookieTheCat#1756: 4100
Aboo Minister#8971: 4075
Peter parker#0001: 350
Pim#3520: 275
.quiz python
This game consists of 7 questions.
**Rules: **
- Only enclose your answer in backticks when the question tells you to.
- If the question specifies an answer format, follow it or else it won't be accepted.
- You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
- No cheating and have fun!
Category: python
Which year was Python 3 released?
2008
@wanton plinth got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 6
Pim#3520: 100
Can you pickle a running list_iterator (y/n)?
y
@wanton plinth got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 5
Pim#3520: 200
What is the official name of this operator :=, introduced in 3.8?
20s left!
10s left!
uhm
Better luck next time...
Let's move to the next question.
Remaining questions: 4
Pim#3520: 200
How is infinity represented in Python?
inf
20s left!
float("inf")
@wanton plinth got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 3
Pim#3520: 275
What name does a lambda function have?
@wanton plinth got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
Pim#3520: 375
When was Python first released?
1991
@wanton plinth got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 1
Pim#3520: 475
What is a package that doesn't have a __init__ file called?
Shit
20s left!
10s left!
Better luck next time...
Remaining questions: 0
Pim#3520: 475
The round has ended.
Congratulations @wanton plinth :tada: You have won this quiz game with a grand total of 475 points!
.quiz leaderboard
CookieTheCat#1756: 4100
Aboo Minister#8971: 4075
Pim#3520: 750
Peter parker#0001: 350
.quiz python
This game consists of 7 questions.
**Rules: **
- Only enclose your answer in backticks when the question tells you to.
- If the question specifies an answer format, follow it or else it won't be accepted.
- You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
- No cheating and have fun!
Category: python
What is a package that doesn't have a __init__ file called?
namespace package
@prime mirage got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 6
CookieTheCat#1756: 100
Name the only non-dunder method of the builtin slice object.
20s left!
indecies
10s left!
Ahh how do you spell it
Better luck next time...
Let's move to the next question.
Remaining questions: 5
CookieTheCat#1756: 100
What file extension is used by the site module to determine what to do at every start?
.pth
@prime mirage got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 4
CookieTheCat#1756: 200
What dunder method is used by the tuple constructor to optimize converting an iterator to a tuple (answer should be enclosed in backticks!)?
20s left!
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 3
CookieTheCat#1756: 200
What is the official name of this operator :=, introduced in 3.8?
20s left!
oof what was it
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 2
CookieTheCat#1756: 200
What type is the attribute of a frame object that contains the current local variables?
.help
AdventOfCode
.adventofcode
All of the Advent of Code commands.
AprilFoolVideos
.fool
Get a random April Fools' video from Youtube.
AvatarModify
.8bitify
Pixelates your avatar and changes the palette to an 8bit one.
.avatar_modify
Groups all of the pfp modifying commands to allow a single concurrency limit.
.avatareasterify [colours...]
This "Easterifies" the user's avatar.
.mosaic [squares=16]
Splits your avatar into x squares, randomizes them and stitches them back into a new image!
.prideavatar [option=lgbt] [pixels=64]
This surrounds an avatar with a border of a specified LGBT flag.
.spookyavatar [member]
Spookify an user's avatar.
dict
@prime mirage got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 1
CookieTheCat#1756: 300
Is the __aiter__ method async (y/n)?
n
@prime mirage got the correct answer :tada: 100 points!
Remaining questions: 0
CookieTheCat#1756: 400
The round has ended.
Congratulations @prime mirage :tada: You have won this quiz game with a grand total of 400 points!
.fool
Check out this April Fools' video by google.
For more information, please visit http://www.google.com/fiber
.status cat 201
.help
AdventOfCode
.adventofcode
All of the Advent of Code commands.
AprilFoolVideos
.fool
Get a random April Fools' video from Youtube.
AvatarModify
.8bitify
Pixelates your avatar and changes the palette to an 8bit one.
.avatar_modify
Groups all of the pfp modifying commands to allow a single concurrency limit.
.avatareasterify [colours...]
This "Easterifies" the user's avatar.
.mosaic [squares=16]
Splits your avatar into x squares, randomizes them and stitches them back into a new image!
.prideavatar [option=lgbt] [pixels=64]
This surrounds an avatar with a border of a specified LGBT flag.
.spookyavatar [member]
Spookify an user's avatar.
.connect4
@true spade Seems like there's no one here to play. Use .connect4 ai to play against a computer.
.connect4 ai
1๏ธโฃ 2๏ธโฃ 3๏ธโฃ 4๏ธโฃ 5๏ธโฃ 6๏ธโฃ 7๏ธโฃ
:white_circle: :white_circle: :white_circle: :white_circle: :white_circle: :white_circle: :white_circle:
:white_circle: :white_circle: :white_circle: :white_circle: :white_circle: :white_circle: :white_circle:
:white_circle: :white_circle: :white_circle: :white_circle: :white_circle: :white_circle: :white_circle:
:white_circle: :white_circle: ๐ต :white_circle: ๐ด :white_circle: :white_circle:
:white_circle: :white_circle: ๐ต :white_circle: ๐ต :white_circle: :white_circle:
:white_circle: ๐ด ๐ต :white_circle: ๐ต :white_circle: ๐ด
๐ด ๐ต ๐ต ๐ด ๐ต ๐ด ๐ด
Game Over! @true spade won against @wicked parrot
.help
AdventOfCode
.adventofcode
All of the Advent of Code commands.
AprilFoolVideos
.fool
Get a random April Fools' video from Youtube.
AvatarModify
.8bitify
Pixelates your avatar and changes the palette to an 8bit one.
.avatar_modify
Groups all of the pfp modifying commands to allow a single concurrency limit.
.avatareasterify [colours...]
This "Easterifies" the user's avatar.
.mosaic [squares=16]
Splits your avatar into x squares, randomizes them and stitches them back into a new image!
.prideavatar [option=lgbt] [pixels=64]
This surrounds an avatar with a border of a specified LGBT flag.
.spookyavatar [member]
Spookify an user's avatar.
.connect4 ai
1๏ธโฃ 2๏ธโฃ 3๏ธโฃ 4๏ธโฃ 5๏ธโฃ 6๏ธโฃ 7๏ธโฃ
:white_circle: ๐ด :white_circle: :white_circle: :white_circle: :white_circle: :white_circle:
:white_circle: ๐ต ๐ด ๐ต :white_circle: :white_circle: :white_circle:
:white_circle: ๐ด ๐ต ๐ด ๐ด ๐ด ๐ด
๐ต ๐ด ๐ต ๐ด ๐ต ๐ต ๐ด
๐ด ๐ต ๐ต ๐ต ๐ด ๐ต ๐ต
๐ด ๐ต ๐ด ๐ต ๐ด ๐ด ๐ต
๐ด ๐ต ๐ด ๐ต ๐ต ๐ด ๐ต
Game Over! @wicked parrot won against @true spade
1๏ธโฃ 2๏ธโฃ 3๏ธโฃ 4๏ธโฃ 5๏ธโฃ 6๏ธโฃ 7๏ธโฃ
:white_circle: :white_circle: :white_circle: :white_circle: :white_circle: :white_circle: :white_circle:
:white_circle: :white_circle: :white_circle: :white_circle: :white_circle: :white_circle: :white_circle:
๐ด :white_circle: :white_circle: :white_circle: ๐ด :white_circle: :white_circle:
๐ด :white_circle: :white_circle: :white_circle: ๐ต ๐ต :white_circle:
๐ต :white_circle: :white_circle: ๐ด ๐ด ๐ต :white_circle:
๐ต :white_circle: :white_circle: ๐ต ๐ด ๐ด :white_circle:
๐ต :white_circle: ๐ต ๐ด ๐ต ๐ด :white_circle:
@main scarab, it's your turn! React with the column you want to place your token in.
@main scarab, you took too long. Game over!
Suggest more topics here!
.catify
Your catified nickname is: Ankith101 | แแแข
.catify
Your catified nickname is: GennieGuy | แแแข
.topic
.avatar_modify
Can also use: avatar_mod, avatarmod, pfp_mod, pfpmod
Groups all of the pfp modifying commands to allow a single concurrency limit.
Subcommands:
8bitify
Pixelates your avatar and changes the palette to an 8bit one.
avatareasterify [colours...]
This "Easterifies" the user's avatar.
mosaic [squares=16]
Splits your avatar into x squares, randomizes them and stitches them back into a new image!
prideavatar [option=lgbt] [pixels=64]
This surrounds an avatar with a border of a specified LGBT flag.
spookyavatar [member]
Spookify an user's avatar.
.avatareasterify
I'm the fucking demon
.catify
Your catified nickname is: Guilhotina | แแแข | แแแข
.catify
Your catified nickname is: MorowyKomandos | แกแแข
.help
BunnyNameGenerator
.bunnyname
Picks a random bunny name from a JSON file.
Catify
.catify <text>
Convert the provided text into a cat themed sentence by interspercing cats throughout text.
CheatSheet
.cheat [search_terms...]
Search cheat.sh.
ConnectFour
.connect_four [board_size=7] [emoji1=๐ต] [emoji2=๐ด]
Play the classic game of Connect Four with someone!
ConvoStarters
.topic
Responds with a random topic to start a conversation.
.8bitify
.cheat
Result Of cht.sh
# Python: significance of -u option?
#
# From python --help:
#
# > -u : unbuffered binary stdout and stderr; also
# PYTHONUNBUFFERED=x
see man page for details on internal buffering relating to '-u'
# The manpage states:
#
# > -u Force stdin, stdout and stderr to be totally
# unbuffered. On systems where it matters, also put stdin,
stdout and stderr in binary mode. Note that there is internal buffering in xreadlines(), readlines()
and file-object iterators ("for line in sys.stdin") which is not influenced by this option. To work
around this, you will want to use "sys.stdin.readline()" inside a "while 1:" loop.
# Python opens the stdin, -out and -error streams in a buffered mode;
# it'll read or write in larger chunks, keeping data in memory until a
# threshold is reached. -u disables those buffers.
#
# Also, python can interpret newlines on open files and translate them
# from and to the native platform
... (truncated - too many lines)```
Full results: https://cheat.sh/python/
.cheat git
Result Of cht.sh
# Python Git Module experiences?
#
# While this question was asked a while ago and I don't know the state
# of the libraries at that point, it is worth mentioning for searchers
# that GitPython does a good job of abstracting the command line tools
# so that you don't need to use subprocess. There are some useful built
# in abstractions that you can use, but for everything else you can do
# things like:
import git
repo = git.Repo( '/home/me/repodir' )
print repo.git.status()
# checkout and track a remote branch
print repo.git.checkout( 'origin/somebranch', b='somebranch' )
# add a file
print repo.git.add( 'somefile' )
# commit
print repo.git.commit( m='my commit message' )
# now we are one commit ahead
print repo.git.status()
# Everything else in GitPython just makes it easier to navigate. I'm
# fairly well satisfied with this library and appreciate that it is a
# wrapper on the underlying git tools.
#
# UPDATE: I've switched to using the sh module for not just git but
... (truncated - too many lines)```
Full results: https://cheat.sh/python/git
.cheat git stash
Result Of cht.sh
# question_id: 28265396
# Per the docs, ["Using git directly"](http://gitpython.readthedocs.org/
# en/stable/tutorial.htmlusing-git-directly):
#
# > In case you are missing functionality as it has not been wrapped,
# you may
# conveniently use the git command directly. It is owned by each
# repository
# instance.
#
# Thus, you could call \`git stash save\` with
repo.git.stash('save')
# [unutbu] [so/q/28265396] [cc by-sa 3.0]
.cheat str.join
Result Of cht.sh
# Use [\`join\`](https://docs.python.org/library/stdtypes.htmlstr.join):
>>> sentence = ['this', 'is', 'a', 'sentence']
>>> '-'.join(sentence)
'this-is-a-sentence'
>>> ' '.join(sentence)
'this is a sentence'
# [Burhan Khalid] [so/q/12453580] [cc by-sa 3.0]
.cheat list
Result Of cht.sh
# python - Why does += behave unexpectedly on lists?
#
# The general answer is that += tries to call the __iadd__ special
# method, and if that isn't available it tries to use __add__ instead.
# So the issue is with the difference between these special methods.
#
# The __iadd__ special method is for an in-place addition, that is it
# mutates the object that it acts on. The __add__ special method returns
# a new object and is also used for the standard + operator.
#
# So when the += operator is used on an object which has an __iadd__
# defined the object is modified in place. Otherwise it will instead try
# to use the plain __add__ and return a new object.
#
# That is why for mutable types like lists += changes the object's
# value, whereas for immutable types like tuples, strings and integers a
# new object is returned instead (a += b becomes equivalent to a = a +
# b).
#
# For types that support both __iadd__ and __add__ you therefore have to
# be careful whi
... (truncated - too many lines)```
Full results: https://cheat.sh/python/list
.cheat aiohttp
Result Of cht.sh
# Python aiohttp/asyncio - how to process returned data
#
# Here's an example with concurrent.futures.ProcessPoolExecutor (https:/
# /docs.python.org/3/library/concurrent.futures.htmlprocesspoolexecutor
# ). If it's created without specifying max_workers, the implementation
# will use os.cpu_count instead. Also note that asyncio.wrap_future (htt
# ps://github.com/python/asyncio/blob/ae82bb79/asyncio/futures.pyL469)
# is public but undocumented. Alternatively, there's
# AbstractEventLoop.run_in_executor (https://docs.python.org/3/library
# /asyncio-eventloop.htmlasyncio.AbstractEventLoop.run_in_executor).
import asyncio
from concurrent.futures import ProcessPoolExecutor
import aiohttp
import lxml.html
def process_page(html):
'''Meant for CPU-bound workload'''
tree = lxml.html.fromstring(html)
return tree.find('.//title').text
async def fetch_page(url, session):
'''Meant for IO-bound workload'''
async with session.get(url, timeout = 15) as res:
re
... (truncated - too many lines)```
Full results: https://cheat.sh/python/aiohttp
.bunnyname
Thumper
.bunnyname
Thumper
.bunnyname thumper
Fuzzy
.bunnyname Thumper.
Dandelion
.bunnyname Maseratti
Goldie
.bunnyname Golden
Fuzzy
.bunnyname algo.algo
Skipper
.bunnyname guy\\///|/$
Flopsy
.bunnyname -bash
Dandelion
.bunnyname Cowsai
Buttercup
.quiz leaderboard
CookieTheCat#1756: 4500
Aboo Minister#8971: 4075
Pim#3520: 750
Peter parker#0001: 350
This game consists of 10 questions.
**Rules: **
- Only enclose your answer in backticks when the question tells you to.
- If the question specifies an answer format, follow it or else it won't be accepted.
- You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
- No cheating and have fun!
Category: python
What dunder method is used by the tuple constructor to optimize converting an iterator to a tuple (answer should be enclosed in backticks!)?
__length_hint__
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 9
Aboo Minister#8971: 100
Does numbers.Rational include the builtin object float (y/n)
n
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 8
Aboo Minister#8971: 200
Which of these is a subclass of Exception?
(NotImplemented, asyncio.CancelledError, StopIteration)
StopIteratoin
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 7
Aboo Minister#8971: 300
What file extension is used by the site module to determine what to do at every start?
.pth
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 6
Aboo Minister#8971: 400
What type does the & operator return when given 2 dict_keys objects?
set
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 5
Aboo Minister#8971: 500
What is the garbage collection strategy used by cpython to collect everything but reference cycles?
refcounting
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 4
Aboo Minister#8971: 600
How is infinity represented in Python?
float("inf")
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 3
Aboo Minister#8971: 700
Where does the name Python come from?
monty python
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
Aboo Minister#8971: 800
Which file contains all special site builtins, such as help or credits?
_sitebuiltins
@rugged pike got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 1
Aboo Minister#8971: 900
What name does a lambda function have?
<lambda>
@rugged pike got the correct answer :tada: 100 points!
Remaining questions: 0
Aboo Minister#8971: 1000
The round has ended.
Congratulations @rugged pike :tada: You have won this quiz game with a grand total of 1000 points!
Aboo Minister#8971: 5075
CookieTheCat#1756: 4500
Pim#3520: 750
Peter parker#0001: 350
.quiz python 11
This game consists of 11 questions.
**Rules: **
- Only enclose your answer in backticks when the question tells you to.
- If the question specifies an answer format, follow it or else it won't be accepted.
- You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
- No cheating and have fun!
Category: python
Which of these characters is valid python outside of string literals in some context?
(@, $, ?)
20s left!
@
@vocal nova got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 10
GennieGuy#3182: 75
Which of these is a subclass of Exception?
(NotImplemented, asyncio.CancelledError, StopIteration)
20s left!
NotImplemented
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 9
asyncio.CancelledError
GennieGuy#3182: 75
What type does the & operator return when given 2 dict_keys objects?
20s left!
tuple
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 8
GennieGuy#3182: 75
Which protocol is used to pass self to methods when accessed on classes?
20s left!
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 7
GennieGuy#3182: 75
What dunder method is used by the tuple constructor to optimize converting an iterator to a tuple (answer should be enclosed in backticks!)?
20s left!
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 6
GennieGuy#3182: 75
Which standard library module is designed for making simple parsers for languages like shell, as well as safe quoting of strings for use in a shell?
20s left!
urllib
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 5
GennieGuy#3182: 75
How does one call a class who defines the behavior of their instance classes?
20s left!
10s left!
method.Class
Better luck next time...
Let's move to the next question.
Remaining questions: 4
GennieGuy#3182: 75
What file extension is used by the site module to determine what to do at every start?
20s left!
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 3
GennieGuy#3182: 75
Is everything an instance of the object class (y/n)?
@vocal nova got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
GennieGuy#3182: 175
When was Python first released?
20s left!
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 1
GennieGuy#3182: 175
Name the only non-dunder method of the builtin slice object.
20s left!
splash
10s left!
No one answered correctly!
Remaining questions: 0
GennieGuy#3182: 175
The round has ended.
Congratulations @vocal nova :tada: You have won this quiz game with a grand total of 175 points!
.quiz python 12
This game consists of 12 questions.
**Rules: **
- Only enclose your answer in backticks when the question tells you to.
- If the question specifies an answer format, follow it or else it won't be accepted.
- You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
- No cheating and have fun!
Category: python
Does numbers.Rational include the builtin object float (y/n)
@vocal nova got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 11
GennieGuy#3182: 100
Name the only non-dunder method of the builtin slice object.
20s left!
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 10
GennieGuy#3182: 100
What type is the attribute of a frame object that contains the current local variables?
.
20s left!
/
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 9
GennieGuy#3182: 100
What decorator is used to allow a protocol to be checked at runtime?
20s left!
10s left!
@lethal pumicemand.run
No one answered correctly!
Let's move to the next question.
Remaining questions: 8
GennieGuy#3182: 100
What is the garbage collection strategy used by cpython to collect everything but reference cycles?
20s left!
10s left!
wheel
No one answered correctly!
Let's move to the next question.
Remaining questions: 7
GennieGuy#3182: 100
Which protocol is used to pass self to methods when accessed on classes?
20s left!
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 6
calling
GennieGuy#3182: 100
What is a package that doesn't have a __init__ file called?
stunt
20s left!
module
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 5
GennieGuy#3182: 100
Which one of these protocols/abstract base classes does the builtin range object NOT implement?
(Sequence, Iterable, Generator)
20s left!
10s left!
@vocal nova got the correct answer :tada: 50 points!
Let's move to the next question.
Remaining questions: 4
GennieGuy#3182: 150
Which of these characters is valid python outside of string literals in some context?
(@, $, ?)
@
@vocal nova got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 3
GennieGuy#3182: 250
What exception, other than StopIteration, can you raise from a __getitem__ dunder to indicate to an iterator that it should stop?
20s left!
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 2
GennieGuy#3182: 250
Which of these is a subclass of Exception?
(NotImplemented, asyncio.CancelledError, StopIteration)
20s left!
StopIteration
@vocal nova got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 1
GennieGuy#3182: 325
Is everything an instance of the object class (y/n)?
yes
@vocal nova got the correct answer :tada: 100 points!
Remaining questions: 0
GennieGuy#3182: 425
The round has ended.
Congratulations @vocal nova :tada: You have won this quiz game with a grand total of 425 points!
.quiz python 13
This game consists of 13 questions.
**Rules: **
- Only enclose your answer in backticks when the question tells you to.
- If the question specifies an answer format, follow it or else it won't be accepted.
- You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
- No cheating and have fun!
Category: python
Which attribute is the documentation string of a function/method/class stored in (answer should be enclosed in backticks!)?
20s left!
enclosure
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 12
No one has made it onto the leaderboard yet.
Is everything an instance of the object class (y/n)?
yes
@vocal nova got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 11
GennieGuy#3182: 100
What decorator is used to allow a protocol to be checked at runtime?
20s left!
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 10
GennieGuy#3182: 100
What type is the attribute of a frame object that contains the current local variables?
runtime_checkable
20s left!
dict
@vocal nova got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 9
GennieGuy#3182: 175
What is the garbage collection strategy used by cpython to collect everything but reference cycles?
reference
No one answered correctly!
Let's move to the next question.
Remaining questions: 8
GennieGuy#3182: 175
What dunder method is used by the tuple constructor to optimize converting an iterator to a tuple (answer should be enclosed in backticks!)?
20s left!
10s left!
getitem
No one answered correctly!
Let's move to the next question.
Remaining questions: 7
GennieGuy#3182: 175
Which file contains all special site builtins, such as help or credits?
20s left!
10s left!
docs
Better luck next time...
Let's move to the next question.
Remaining questions: 6
GennieGuy#3182: 175
Name the only non-dunder method of the builtin slice object.
20s left!
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 5
GennieGuy#3182: 175
Which of these characters is valid python outside of string literals in some context?
(@, $, ?)
@
@vocal nova got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 4
GennieGuy#3182: 275
Does numbers.Rational include the builtin object float (y/n)
n
@vocal nova got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 3
GennieGuy#3182: 375
Where does the name Python come from?
20s left!
Mont Python
@vocal nova got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 2
GennieGuy#3182: 450
Is the __aiter__ method async (y/n)?
n
@vocal nova got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 1
GennieGuy#3182: 550
What file extension is used by the site module to determine what to do at every start?
20s left!
_sitemodule
10s left!
Better luck next time...
Remaining questions: 0
GennieGuy#3182: 550
The round has ended.
Congratulations @vocal nova :tada: You have won this quiz game with a grand total of 550 points!
.quiz python 14
This game consists of 14 questions.
**Rules: **
- Only enclose your answer in backticks when the question tells you to.
- If the question specifies an answer format, follow it or else it won't be accepted.
- You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
- No cheating and have fun!
Category: python
When was Python first released?
1991
@vocal nova got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 13
GennieGuy#3182: 100
How is infinity represented in Python?
20s left!
10s left!
while True
No one answered correctly!
Let's move to the next question.
Remaining questions: 12
GennieGuy#3182: 100
What file extension is used by the site module to determine what to do at every start?
20s left!
.pth
@vocal nova got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 11
GennieGuy#3182: 175
Which standard library module is designed for making simple parsers for languages like shell, as well as safe quoting of strings for use in a shell?
20s left!