Click here to Skip to main content
15,064,915 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am 100% new to programming and learning Python.

I'm trying to build a bot that joins an IRC server where users are posting phone numbers.

I've done some Googling but can't find anything like this, although I'm sure it's simple to build since a human could easily be doing this with around 1 minute of instruction.

Some users are pasting them like this:

(123) 456-7890

Others are querying an IRC Bot with !phn 123 456 7890

The issue is that users are typing these in different formats.

Ex:

(123) 456 7890

123-456-7890

How do I write a bot that stays in chat, looks out for when these phone numbers get posted, and saves each one into the same text file (just adding a line each time)?

Any help would be much appreciated.

What I have tried:

Looking up IRC bots, watching videos...I don't even know where to begin.
Posted
Updated 17-Apr-21 21:15pm

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900