On 2019-04-01, Paul Rubin wrote:
> John Doe writes:
>> sendall also is not sending a whole sentence.
>
> Have you observed that with something like wireshark?
>
I was about colon ":" before message with a colon a whole message is
" before message with a colon a whole message is sent.
.
> Al
On 2019-04-01, Abdur-Rahmaan Janhangeer wrote:
> Since this is IRC, you might want to see a demo here:
> https://github.com/Abdur-rahmaanJ/honeybot/blob/master/honeybot/main.py
Yes. However get these def text() and loop while 1: working together.
def text():
while True:
mess = input
On 2019-04-01, Rhodri James wrote:
>
> I'm not an expert, but looking at RFC-1459 it looks like your final
> parameter (the message) needs to be preceded by a colon. In other words
> you want:
>
> s.send(bytes("PRIVMSG " + channel + " :" + mess + "\n", "UTF-8"))
>
> (Try printing out the line y
On Tue, Apr 2, 2019 at 7:11 AM John Doe wrote:
>
> On 2019-04-01, Chris Angelico wrote:
> >
> > Cool. Please don't post context-free messages though - not everyone
> > knows that you were talking about IRC. (Part of that is because your
> > subject line didn't mention IRC either.)
> >
> I've ment
On 2019-04-01, Chris Angelico wrote:
>
> Cool. Please don't post context-free messages though - not everyone
> knows that you were talking about IRC. (Part of that is because your
> subject line didn't mention IRC either.)
>
I've mentioned it in a mother post mate.
> If you're going to do a lot w
On Tue, Apr 2, 2019 at 6:36 AM John Doe wrote:
>
> On 2019-04-01, Roel Schroeven wrote:
> > This is what 'while' is made for:
> >
> > def text():
> > while True:
> > mess = input("> ")
> > s.send(bytes("PRIVMSG " + " "+ channel + " " + mess + "\n",
> > "UTF-8"))
> >
>
>
On Tue, Apr 2, 2019 at 6:31 AM John Doe wrote:
>
>
> The colon was the solution, thanks.
>
Cool. Please don't post context-free messages though - not everyone
knows that you were talking about IRC. (Part of that is because your
subject line didn't mention IRC either.)
If you're going to do a lot
On 2019-04-01, Roel Schroeven wrote:
> This is what 'while' is made for:
>
> def text():
> while True:
> mess = input("> ")
> s.send(bytes("PRIVMSG " + " "+ channel + " " + mess + "\n",
> "UTF-8"))
>
see it working thanks, indeed while is powerful, had to add colon to b
Since this is IRC, you might want to see a demo here:
https://github.com/Abdur-rahmaanJ/honeybot/blob/master/honeybot/main.py
Abdur-Rahmaan Janhangeer
Mauritius
--
https://mail.python.org/mailman/listinfo/python-list
The colon was the solution, thanks.
--
https://mail.python.org/mailman/listinfo/python-list
John Doe schreef op 1/04/2019 om 19:16:
On 2019-04-01, Joel Goldstick wrote:
def text():
mess = input("> ")
s.send(bytes("PRIVMSG " + " "+ channel + " " + mess + "\n", "UTF-8"))
text()
Is this a typo or are you calling text() from within text()?
Indeed I do :-)
I was th
On 2019-04-01, Chris Angelico wrote:
>
> Use a loop, not recursion :)
>
I can guess only you mean: while but I've got no idea while what.
--
https://mail.python.org/mailman/listinfo/python-list
On 2019-04-01 18:16, John Doe wrote:
On 2019-04-01, Joel Goldstick wrote:
def text():
mess = input("> ")
s.send(bytes("PRIVMSG " + " "+ channel + " " + mess + "\n", "UTF-8"))
text()
Is this a typo or are you calling text() from within text()?
Indeed I do :-)
I was thinking
On Tue, Apr 2, 2019 at 4:21 AM John Doe wrote:
>
> On 2019-04-01, Joel Goldstick wrote:
> >>
> >> def text():
> >> mess = input("> ")
> >> s.send(bytes("PRIVMSG " + " "+ channel + " " + mess + "\n", "UTF-8"))
> >>
> >> text()
> >>
> >
> > Is this a typo or are you calling text() fro
On 2019-04-01, Joel Goldstick wrote:
>>
>> def text():
>> mess = input("> ")
>> s.send(bytes("PRIVMSG " + " "+ channel + " " + mess + "\n", "UTF-8"))
>>
>> text()
>>
>
> Is this a typo or are you calling text() from within text()?
>>
Indeed I do :-)
I was thinking on another way but
On 2019-04-01, Rhodri James wrote:
I'm learning SOCKETS and working with Irc.
---
s.send(bytes("PRIVMSG " + channel +" "+ message + "\n", "UTF-8"))
When more than one word ( for example: This is a messag
On 2019-04-01, Jon Ribbens wrote:
> On 2019-04-01, John Doe wrote:
>> I'm learning SOCKETS and working with Irc.
>> ---
>> s.send(bytes("PRIVMSG " + channel +" "+ message + "\n", "UTF-8"))
>>
>> When more than one word ( for example
On 01/04/2019 16:14, John Doe wrote:
On 2019-04-01, Chris Angelico wrote:
I'm learning SOCKETS and working with Irc.
---
s.send(bytes("PRIVMSG " + channel +" "+ message + "\n", "UTF-8"))
When more than one word ( for example:
On 2019-04-01, John Doe wrote:
> I'm learning SOCKETS and working with Irc.
> ---
> s.send(bytes("PRIVMSG " + channel +" "+ message + "\n", "UTF-8"))
>
> When more than one word ( for example: This is a message)
> in *message* it s
On Mon, Apr 1, 2019 at 11:16 AM John Doe wrote:
>
> On 2019-04-01, Chris Angelico wrote:
> >>
> >> I'm learning SOCKETS and working with Irc.
> >> ---
> >> s.send(bytes("PRIVMSG " + channel +" "+ message + "\n", "UTF-8"))
> >>
> >>
On 2019-04-01, David Raymond wrote:
> https://docs.python.org/3.7/library/socket.html#socket.socket.send
>
> .send returns the number of bytes that it actually succeeded in sending. From
> the docs: "Applications are responsible for checking that all data has been
> sent; if only some of the dat
On 2019-04-01, Chris Angelico wrote:
>>
>> I'm learning SOCKETS and working with Irc.
>> ---
>> s.send(bytes("PRIVMSG " + channel +" "+ message + "\n", "UTF-8"))
>>
>> When more than one word ( for example: This is a message)
>> in
https://docs.python.org/3.7/library/socket.html#socket.socket.send
.send returns the number of bytes that it actually succeeded in sending. From
the docs: "Applications are responsible for checking that all data has been
sent; if only some of the data was transmitted, the application needs to
a
On Tue, Apr 2, 2019 at 12:41 AM John Doe wrote:
>
> I'm learning SOCKETS and working with Irc.
> ---
> s.send(bytes("PRIVMSG " + channel +" "+ message + "\n", "UTF-8"))
>
> When more than one word ( for example: This is a message)
>
24 matches
Mail list logo